Advertisement
Voke_Bass

Anti-Cheat tb.kick [UPDATED 2020-12-17]

Feb 25th, 2019 (edited)
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.71 KB | None | 0 0
  1. //Updated 2020-12-17 | Rewiews: 250
  2. //Created by Vok3 | more: https://pastebin.com/u/Voke_Bass
  3.  
  4. new CheckSpam[MAX_PLAYERS];
  5.  
  6. public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z)
  7. {
  8.     if(passenger_seat != 0)
  9.     {
  10.         if(vel_z == 400.0)
  11.         {
  12.             if(CheckSpam[playerid]) return 1;
  13.  
  14.             new String[100];
  15.             format(String, sizeof(String), "[Anti-Cheat] Player %s was kicked out of the server!", /*GetPlayerName*/);
  16.             SendClientMessageToAll(-1, String);
  17.            
  18.             CheckSpam[playerid] = 1;
  19.             Kick(playerid);
  20.             return 0;
  21.         }
  22.     }
  23.     return 1;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement