Guest User

Untitled

a guest
Jan 22nd, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.89 KB | None | 0 0
  1. /*
  2. Include totalmente criada por Vai_Besta
  3. Thanks to all SA-MP DEV TEAM
  4. */
  5. #include <a_samp>
  6.  
  7. forward CheckCheater(playerid);
  8. forward CheckCheaterTimer();
  9.  
  10. public CheckCheater(playerid)
  11. {
  12.     if(GetPlayerAnimationIndex(playerid))
  13.     {
  14.         new animname[32],Nomevb[MAX_PLAYER_NAME],Strvb[50];
  15.         GetAnimationName(GetPlayerAnimationIndex(playerid),animname,32,animname,32);
  16.         if(strcmp(animname, "RUN_PLAYER", true) == 0 || strcmp(animname, "WALK_player", true) == 0)
  17.         {
  18.             GetPlayerName(playerid, Nomevb, sizeof(Nomevb));
  19.             format(Strvb, sizeof(Strvb), "%s foi banido por usar S0beit", Nomevb);
  20.             SendClientMessageToAll(0x91FF00AA, Strvb);
  21.             SendClientMessage(playerid,-1,"Você foi banido automaticamente por usar s0beit");
  22.             Ban(playerid);
  23.         }
  24.     }
  25.     return 1;
  26. }
  27. public CheckCheaterTimer()
  28. {
  29.     SetTimer("CheckCheater",4000,true);
  30.     return 1;
  31. }
Add Comment
Please, Sign In to add comment