Advertisement
Guest User

Untitled

a guest
Oct 10th, 2013
8,148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. new FakeKill[MAX_PLAYERS char];
  2.  
  3. public OnPlayerDeath(playerid,killerid,reason)
  4. {
  5. FakeKill{playerid}++;
  6. SetTimerEx("SairFakeKill",1000,0,"i",playerid);
  7.  
  8.  
  9. if(FakeKill{playerid} > 2)
  10. {
  11. Ban(playerid);
  12. }
  13. return 1;
  14. }
  15. public OnPlayerConnect(playerid)
  16. {
  17. FakeKill{playerid} = 0;
  18. return 1;
  19. }
  20. SairFakeKill(playerid);
  21.  
  22. public SairFakeKill(playerid)
  23. {
  24. FakeKill{playerid} = 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement