Advertisement
dann1s

AntiGodOfCars

Aug 23rd, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. new vozilouso[MAX_PLAYERS]; //def
  2. // Pod OnPlayerEnterVehicle
  3. if(!ispassenger)
  4. {
  5. if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_ENTER_VEHICLE && GetPlayerSpecialAction( playerid ) != SPECIAL_ACTION_EXIT_VEHICLE)
  6. {
  7. vozilouso[playerid] ++;
  8. }
  9. }
  10. //OnPlayerConnect
  11. vozilouso[playerid] = -1;
  12.  
  13.  
  14. //U neki tajmer od 500ms ili 1sec
  15. if(vozilouso[i] > 2)
  16. {
  17. vozilouso[i] = -1;
  18. format(CmdStringed, sizeof(CmdStringed), "{D5A658}(AntiCheat) {D55858}Igrac %s je kikovan zbog bacanja vozila.",GetName(i));
  19. ABroadCast(SIVA,CmdStringed,1); //prilagodi sebi
  20. Kick(i);
  21. }
  22. else
  23. {
  24. vozilouso[i] = -1;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement