Advertisement
obernardovieira

[SA-MP] Anti Flood Kill

Sep 2nd, 2013
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.66 KB | None | 0 0
  1. static tempomorrer[MAX_PLAYERS];
  2. static floodkill[MAX_PLAYERS];
  3. if((GetTickCount()-tempomorrer[playerid]) < 3000) // 3000 original
  4. {
  5.     floodkill[playerid] ++;
  6.  
  7.     if(floodkill[playerid] >= 2) // 5 original
  8.     {
  9.         floodkill[playerid] = 0;
  10.         tempomorrer[playerid] = 0;
  11.  
  12.         format(string,sizeof(string),"{F75464}O(A) jogador(a) %s foi banido(a) por fazer {FFAE00}Flood Kill", GetPlayerNameEx(playerid));
  13.         SendClientMessageToAll(0xFFFF00AA, string);
  14.         SendClientMessage(playerid, Branco, "A inveja e fudida, mas e isso que nos da força!");
  15.         return BanEx(playerid, "Flood Kill");
  16.     }
  17. }
  18. else
  19. {
  20.     floodkill[playerid] = 0;
  21.     tempomorrer[playerid] = GetTickCount();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement