Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------
- --Script made by: SepticGames--
- -------------------------------
- --Don't touch this! But if you wan't, then make a copy and then mess
- --around with this script!
- local fileName="settings.ini"
- function onPlayerJoin(id, name, clientIP) --If a player joins
- if(fileExists(fileName)) then
- iniOpen(fileName)
- serverName=iniReadString("Server","name","")
- serverDesc=iniReadString("Server","description","")
- respawnTime=iniReadNumber("Server","respawn_time",0)
- gamemode=iniReadNumber("Server","gamemode",0)
- iniClose()
- networkSendServerSettings(serverName, serverDesc, respawnTime, gamemode, clientIP)
- else
- createServerSettings()
- end
- chatAddText(name .. " joined: " .. serverName .. "!",color(6))
- end
- function onPlayerDeath(playerid, killerid, playerName, killerName)
- networkClearBuffer(1)
- networkWrite("NET_CHAT",killerName .. " killed " .. playerName .. "!", color(14))
- networkSend("ALL_CLIENTS")
- chatAddText(killerName .. " killed " .. playerName .. "!", color(14))
- end
- function onPlayerExit(clientIP, name)
- clientFree(clientIP)
- networkClearBuffer(1)
- networkWrite("NET_CHAT",name .. " left the server!", color(14))
- networkSend("ALL_CLIENTS")
- chatAddText(name .. " left the server!",color(14))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement