[Request]Repair CMD
#6

Quote:
Originally Posted by jlalt
Посмотреть сообщение
PHP код:
native IsValidVehicle(vehicleid);
   if(
isnull(params)) {
      if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1,"Usae: /repair [vehicleID]");
      
RepairVehicle(GetPlayerVehicleID(playerid));
      
SendClientMessage(playerid,-1,"You have sucessfully repaired your vehicle!");
   } else {
      if(
IsValidVehicle(strval(params))) {
           
RepairVehicle(strval(params));
           
SendClientMessage(playerid,-1,"You have sucessfully repaired the vehicle!");
      } else {
         
SendClientMessage(playerid,-1,"ERROR: Invalid Vehicle ID!");
      }
   }
   return 
1;

Working
Thanks
+1Rep
Reply


Messages In This Thread
[Request]Repair CMD - by ArianGubetini - 30.03.2016, 21:28
Re: [Request]Repair CMD - by Konstantinos - 30.03.2016, 21:41
Re: [Request]Repair CMD - by ArianGubetini - 30.03.2016, 21:50
Re: [Request]Repair CMD - by ArianGubetini - 01.04.2016, 10:18
Re: [Request]Repair CMD - by jlalt - 01.04.2016, 10:30
Re: [Request]Repair CMD - by ArianGubetini - 01.04.2016, 12:22
Re: [Request]Repair CMD - by MattMaximum - 01.04.2016, 20:38

Forum Jump:


Users browsing this thread: 1 Guest(s)