Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onThink(interval, lastExecution, thinkInterval)
- local players = {}
- for _, i in pairs(getPlayersOnline()) do
- table.insert(players, i)
- end
- -------------
- for k, v in pairs(players) do
- if getPartyLeader(cid) == cid then
- local guid = getPlayerGUID(cid)
- local name = getCreatureName(cid)
- local accId = getAccountIdByName(name)
- local ip = getPlayerIp(cid)
- doRemoveCreature(cid)
- doAddPlayerBanishment(accId, PLAYERBAN_BANISHMENT, 3 * 60 * 3600, 23, ACTION_BANISHMENT, "Auto-Ban", guid, 1)
- doAddIpBanishment(ip)
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement