LucasViniciusLV

[CODE]: Anti - AimBot

Sep 12th, 2013
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.69 KB | None | 0 0
  1. #include a_samp
  2.  
  3. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  4. {
  5.     if(GetPlayerCameraMode(issuerid) != 53 || !IsPlayerConnected(issuerid)) return 1
  6.     switch(weaponid)
  7.     {
  8.         case 22..34:
  9.         {
  10.             if(GetPlayerTargetPlayer(issuerid) == INVALID_PLAYER_ID)
  11.             {
  12.                 new string[61], Nome[24];
  13.                 GetPlayerName(issuerid, Nome, 24);
  14.                 format(string, sizeof(string), "PTAC: [%d]%s está usando AimBot.", issuerid, Nome);
  15.                 for(new i, PT = MAX_PLAYERS; i < PT; i++) if(IsPlayerConnected(i) && IsPlayerAdmin(i)) SendClientMessage(i, -1, string);
  16.             }
  17.         }
  18.     }
  19.     return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment