05.02.2012, 21:22
I have lag. when i use command repair everything works fine but player whos use that command get lagged. like he is not driving smoothly but jumping from spot to spot.. whats the problem? i hope you understand me. Thanks there is the command.
On the start of the script or gamemode...
Under onplayercommandtext
Under ongamemodeini - thats for me..
On the start of the script or gamemode...
Код:
forward Repair(playerid)
Код:
if (!strcmp("/repair", cmdtext)) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You aren't in a vehicle!"); RepairVehicle(GetPlayerVehicleID(playerid)); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); TogglePlayerControllable(playerid,0); SetTimerEx("Repair",5000,false,"i",playerid); return 1; }
Код:
public Repair(playerid) { TogglePlayerControllable(playerid,1); SendClientMessage(playerid, COLOR_GREEN, "Your vehicle has been repaired!"); return 1; }