Zmajk0

Untitled

Apr 11th, 2020
71
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. forward ac_CheckSpeed(playerid,get3d);
  2. public ac_CheckSpeed(playerid,get3d)
  3. {
  4. new Float:x,Float:y,Float:z;
  5. if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z);
  6. else GetPlayerVelocity(playerid,x,y,z);
  7. return g_Brzina(x,y,z,100,get3d);
  8. }
  9. public OnPlayerEnterCheckpoint(playerid)
  10. {
  11. if(!ac_CheckSpeed(playerid,false))
  12. {
  13. if(!IgracPolicajac(playerid))
  14. {
  15. new cpacc[120];
  16. format(cpacc,sizeof(cpacc),"|CP PORT| %s(%d) koristi CheckPoint Teleport (/spec) !",Player_Name(playerid),playerid);
  17. AdminPoruka(0xFF6600FF,cpacc);
  18. new info[130];
  19. strcat(info,"{ffffff}Detektovani ste za moguc CheckPoint TP !\n",sizeof(info));
  20. strcat(info,"{ffffff}Izadjite te udjite u CheckPoint !\n",sizeof(info));
  21. ShowPlayerDialog(playerid,146,DIALOG_STYLE_MSGBOX,"{FF0000}ANTICHEAT INFO",info,"U redu","");
  22. }
  23. return false;
  24. }
RAW Paste Data