Advertisement
Guest User

LOOK!

a guest
May 23rd, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. -------------------------------
  2. --Script made by: SepticGames--
  3. -------------------------------
  4. --Don't touch this! But if you wan't, then make a copy and then mess
  5. --around with this script!
  6. local fileName="settings.ini"
  7. function onPlayerJoin(id, name, clientIP) --If a player joins
  8. if(fileExists(fileName)) then
  9. iniOpen(fileName)
  10. serverName=iniReadString("Server","name","")
  11. serverDesc=iniReadString("Server","description","")
  12. respawnTime=iniReadNumber("Server","respawn_time",0)
  13. gamemode=iniReadNumber("Server","gamemode",0)
  14. iniClose()
  15. networkSendServerSettings(serverName, serverDesc, respawnTime, gamemode, clientIP)
  16. else
  17. createServerSettings()
  18. end
  19. chatAddText(name .. " joined: " .. serverName .. "!",color(6))
  20. end
  21.  
  22. function onPlayerDeath(playerid, killerid, playerName, killerName)
  23. networkClearBuffer(1)
  24. networkWrite("NET_CHAT",killerName .. " killed " .. playerName .. "!", color(14))
  25. networkSend("ALL_CLIENTS")
  26. chatAddText(killerName .. " killed " .. playerName .. "!", color(14))
  27. end
  28.  
  29. function onPlayerExit(clientIP, name)
  30. clientFree(clientIP)
  31. networkClearBuffer(1)
  32. networkWrite("NET_CHAT",name .. " left the server!", color(14))
  33. networkSend("ALL_CLIENTS")
  34. chatAddText(name .. " left the server!",color(14))
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement