Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z)
- {
- GetVehiclePos(vehicleid, new_x, new_y, new_z);
- if(!IsPlayerInRangeOfPoint(playerid, 20, new_x, new_y, new_z)) return 0;
- if(passenger_seat)
- {
- new Float:x, Float:y, Float:z;
- GetVehiclePos(vehicleid,x,y,z);
- if(GetFloatDifference(x,gVehicles[vehicleid][vX]) > 20.0 || GetFloatDifference(y,gVehicles[vehicleid][vY]) > 20.0)
- {
- gVehicles[vehicleid][vX] = x;
- gVehicles[vehicleid][vY] = y;
- gVehicles[vehicleid][vZ] = z;
- SetPVarInt(playerid,"pKick4", GetPVarInt(playerid,"pKick4") + 1);
- if(GetPVarInt(playerid,"pKick4") == 4 && PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "Вы кикнуты по подозрению в читерстве (carshot)");
- GKick(playerid, 1048);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement