What is the code for this?.
#4

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


Messages In This Thread
What is the code for this?. - by QatarKnight - 19.07.2013, 07:42
Re: What is the code for this?. - by RajatPawar - 19.07.2013, 07:46
Re: What is the code for this?. - by QatarKnight - 19.07.2013, 09:02
Re : What is the code for this?. - by Chrisis - 19.07.2013, 09:18

Forum Jump:


Users browsing this thread: 2 Guest(s)