AloneZ

Untitled

May 22nd, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.05 KB | None | 0 0
  1. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && weaponid == 24){
  2.  
  3.         fAutoC[playerid] ++;
  4.  
  5.         if(gettime() > GetPVarInt(playerid, "UmSegundo")){
  6.  
  7.             SetPVarInt(playerid, "UmSegundo", gettime() + 1);
  8.             fAutoC[playerid] = 0;
  9.  
  10.         }else{
  11.             if(fAutoC[playerid] > 2){
  12.                 Warnning[ playerid ] ++;
  13.                 format( str, sizeof str, "O player %s recebeu um warnning por suspeita de: Auto Cbug( %d/3 ).",PlayerName( playerid ), Warnning[ playerid ] );
  14.                 ABroadCast( COLOR_LIGHTRED, str, 1 );
  15.                 fAutoC[playerid] = 0;
  16.                 if( Warnning[ playerid ] >= 3 ){
  17.                     format( str, sizeof str, "• |BVO.RPG| • O player %s foi kickado por suspeita de: Auto Cbug", PlayerName( playerid ) );
  18.                     SendClientMessageToAll( COLOR_LIGHTRED, str );
  19.                     fAutoC[playerid] = 0;
  20.                     Warnning[ playerid ] = 0;
  21.                     Kick(playerid);
  22.                 }
  23.             }
  24.         }
  25.     }
  26.     return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment