Advertisement
Guest User

checkmc

a guest
Jul 4th, 2012
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. function onLogin(cid)
  2. local limit,days = 2,360
  3. function CheckMcManager(cid)
  4. local count,on = 0,getPlayersOnline()
  5. if #on > 0 then
  6. for i = 1, #on do
  7. if getCreatureName(on[i]) == "Account Manager" and getPlayerIp(on[i]) == getPlayerIp(cid) then
  8. count = count + 1
  9. end
  10. end
  11. if count > limit then
  12. doAddIpBanishment(getPlayerIp(cid), days * 24 * 60 * 60)
  13. doRemoveCreature(cid)
  14. end
  15. end
  16. return true
  17. end
  18. addEvent(CheckMcManager, 1000, cid)
  19. return true
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement