Advertisement
RiccB

On Foot Crash

Dec 24th, 2020
20
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. // ongamemodeint:
  3.  
  4. SetTimer("TimerisAnti", 500, 1);
  5.  
  6.  
  7. //
  8. forward TimerisAnti();
  9. public TimerisAnti()
  10. {
  11. new vehicleid, Float:spd[3], playerid, pState;
  12. for(playerid = GetPlayerPoolSize(); playerid > -1; p--)
  13. {
  14. if(IsPlayerNPC(playerid) || !IsPlayerConnected(playerid)) continue;
  15. pState = GetPlayerState(playerid);
  16. if(pState == PLAYER_STATE_ONFOOT)
  17. {
  18. GetPlayerCameraFrontVector(playerid, spd[0], spd[1], spd[2]);
  19. if(floatabs(spd[0]) > 10.0 || floatabs(spd[1]) > 10.0 || floatabs(spd[2]) > 10.0)
  20. {
  21. SendClientMessage(playerid, 0xd36e4aFF, "[kick] Jūs išmestas iš serverio už neleistinų programų naudojimą (On Foot Crash).");
  22. SendClientMessage(playerid, WHITE, "Atsiprašome jeigu buvote išmestas per klaidą.");
  23. KickEx(playerid);
  24. }
  25. }
  26. }
  27. return 1;
  28. }
Advertisement
RAW Paste Data Copied
Advertisement