repair lag
#1

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...
Код:
forward Repair(playerid)
Under onplayercommandtext
Код:
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;
    }
Under ongamemodeini - thats for me..
Код:
public Repair(playerid)
{
TogglePlayerControllable(playerid,1);
SendClientMessage(playerid, COLOR_GREEN, "Your vehicle has been repaired!");
    return 1;
}
Reply


Messages In This Thread
repair lag - by bleedis - 05.02.2012, 21:22
Re: repair lag - by JiHost - 05.02.2012, 21:43
Re: repair lag - by bleedis - 05.02.2012, 22:06
Re: repair lag - by Tanush123 - 06.02.2012, 00:37
Re: repair lag - by Bakr - 06.02.2012, 00:53
Re: repair lag - by Tanush123 - 06.02.2012, 00:54
Re: repair lag - by Bakr - 06.02.2012, 01:00
Re: repair lag - by bleedis - 01.09.2012, 05:46

Forum Jump:


Users browsing this thread: 1 Guest(s)