Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local disteffect = 35
- function onThink(pid, interval)
- for _, pid in ipairs(getPlayersOnline()) do
- if isPlayer(pid) and getPlayerGroupId(pid) > 1 and getPlayerStorageValue(pid, 27011) == -1 then
- doPlayerPopupFYI(pid, 'Welcome '..getCreatureName(pid)..' we promotion you to {'..getPlayerGroupName(pid)..'} please read the rules in staff book.')
- 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.")
- doPlayerAddItem(pid, 6103)
- local position = getCreaturePosition(pid)
- for i = 1, 30 do
- doSendDistanceShoot({x = position.x + math.random(-7, 7), y = position.y + math.random(-5, 5), z = position.z}, position, disteffect)
- end
- setPlayerStorageValue(pid, 27011, 1)
- end
- end
- return TRUE
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement