19.07.2013, 09:18
on the top of the script :
in the code you send him to derby :
in the code he press 2 to repair (propobly on player key state change )
on the code of your auto repair system : ( i suggest on player update )
pawn Код:
new derby[MAX_PLAYERS]
pawn Код:
derby[playerid] = 1
pawn Код:
if(derby[playerid] == 1)
{
SendClientMessage(playerid,COLOR_RED,"You are in derby , you cannot repair your car !");
}
pawn Код:
public OnPlayerUpdate
{
if(IsPlayerInAnyVehicle(playerid)
{
if(derby[playerid] != 1)
{
RepairVehicle(GetPlayerVehicleID(playerid));
}
}
}