Advertisement
PaulCastellano

bacanje auat

Mar 26th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. //dodaj onplayerupdate(jbg,mora)
  2.  
  3. new idvozila = GetPlayerVehicleID(playerid);
  4. if(idvozila > 0)
  5. {
  6. if(idvozila != zadnjiid[playerid])
  7. {
  8. if(GetTickCount() - promvrijeme[playerid] < 5000)
  9. {
  10. promjenaid[playerid]++;
  11. if(promjenaid[playerid] > 5)
  12. {
  13. CallLocalFunction("Uhvacen", "i", playerid);
  14. return 0;
  15. }
  16. }
  17. else promjenaid[playerid] = 1;
  18. }
  19. zadnjiid[playerid] = idvozila;
  20. promvrijeme[playerid] = GetTickCount();
  21. }
  22.  
  23. //na vrh
  24.  
  25. forward Uhvacen(playerid);
  26. static zadnjiid[MAX_PLAYERS],
  27. promjenaid[MAX_PLAYERS],
  28. promvrijeme[MAX_PLAYERS];
  29.  
  30.  
  31. //na dno negdje
  32. public Uhvacen(playerid) {
  33. new string[128];
  34. format(string, sizeof(string), "[AntiCheat]: %s je uhavacen od anticheata, razlog: Cleo cheat[/recon](bacanje auta)", GetName(playerid));
  35. AdminGameMaster(CRVENA3, string);
  36. //SetTimerEx("KickIgraca", 150, false, "d", playerid);
  37. //freeze[playerid] = SetTimerEx("KonektKick", 1000, 0, "d", playerid);
  38. return 1;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement