11.02.2017, 11:51
Hi! Some fu***** are joining on my server and begin to spawn vehicles, get players to them etc. How can I fix it?
I use for anti vehicle spawn it:
It seems like it doesn't work because they can spawn vehicles anyway. How can I block troll hacks?
I use for anti vehicle spawn it:
Код HTML:
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat) { new Float: g_ucPos[3]; GetVehiclePos(vehicleid, g_ucPos[0], g_ucPos[1], g_ucPos[2]); if(!IsPlayerInRangeOfPoint(playerid, 100.0, g_ucPos[0], g_ucPos[1], g_ucPos[2])) { if(!IsPlayerInAnyVehicle(playerid)) { Spcount[playerid]++; if(Spcount[playerid] <= 2)return SetVehicleToRespawn(vehicleid); else if(Spcount[playerid] == 3) return Kick(playerid); } return 0; } return 1; }