Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. local disteffect = 35
  2. function onThink(pid, interval)
  3. for _, pid in ipairs(getPlayersOnline()) do
  4. if isPlayer(pid) and getPlayerGroupId(pid) > 1 and getPlayerStorageValue(pid, 27011) == -1 then
  5. doPlayerPopupFYI(pid, 'Welcome '..getCreatureName(pid)..' we promotion you to {'..getPlayerGroupName(pid)..'} please read the rules in staff book.')
  6. doBroadcastMessage("Hello guys we have new staff Memeber "..getCreatureName(pid).." he is {"..getPlayerGroupName(pid).."} if you want help always msg him or use help channel.")
  7. doPlayerAddItem(pid, 6103)
  8. local position = getCreaturePosition(pid)
  9. for i = 1, 30 do
  10. doSendDistanceShoot({x = position.x + math.random(-7, 7), y = position.y + math.random(-5, 5), z = position.z}, position, disteffect)
  11. end
  12. setPlayerStorageValue(pid, 27011, 1)
  13. end
  14. end
  15. return TRUE
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement