Quote:
Originally Posted by Unknown123
TIMERS
ONPLAYERUPDATE
pawn Код:
public OnPlayerUpdate(playerid) { for(new i = 0; i < sizeof(SpikeData); i++) { if(IsVehicleCloseSpike(playerid, GetPlayerVehicleID(playerid), 3.2)) { new panels, doors, lights, tires; GetVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, tires); UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), panels, doors, lights, 15); } } return true; }
|
Looks like thats your problem, your server is more or less doing an infinite loop. If i was you I'd find a better way of doing that. "IsVehicleCloseSpike" probably has a loop too (and range check maybe) so your embedding loops in a callback that gets called many times per second - per player..