OnPlayerCommandText
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
   if (!strcmp("/repair", cmdtext))
   {
      if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
      RepairVehicle(GetPlayerVehicleID(playerid));
      SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!");
      return 1;
   }
   return 0;
}
Reply


Messages In This Thread
OnPlayerCommandText - by yoan103 - 06.07.2010, 11:28
Re: OnPlayerCommandText - by CAR - 06.07.2010, 11:30
Re: OnPlayerCommandText - by yoan103 - 06.07.2010, 11:30
Re: OnPlayerCommandText - by ViruZZzZ_ChiLLL - 06.07.2010, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)