Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //dodaj onplayerupdate(jbg,mora)
- new idvozila = GetPlayerVehicleID(playerid);
- if(idvozila > 0)
- {
- if(idvozila != zadnjiid[playerid])
- {
- if(GetTickCount() - promvrijeme[playerid] < 5000)
- {
- promjenaid[playerid]++;
- if(promjenaid[playerid] > 5)
- {
- CallLocalFunction("Uhvacen", "i", playerid);
- return 0;
- }
- }
- else promjenaid[playerid] = 1;
- }
- zadnjiid[playerid] = idvozila;
- promvrijeme[playerid] = GetTickCount();
- }
- //na vrh
- forward Uhvacen(playerid);
- static zadnjiid[MAX_PLAYERS],
- promjenaid[MAX_PLAYERS],
- promvrijeme[MAX_PLAYERS];
- //na dno negdje
- public Uhvacen(playerid) {
- new string[128];
- format(string, sizeof(string), "[AntiCheat]: %s je uhavacen od anticheata, razlog: Cleo cheat[/recon](bacanje auta)", GetName(playerid));
- AdminGameMaster(CRVENA3, string);
- //SetTimerEx("KickIgraca", 150, false, "d", playerid);
- //freeze[playerid] = SetTimerEx("KonektKick", 1000, 0, "d", playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement