#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
You need to check the model ID and not the vehicle ID.

PHP код:
new vehicle GetPlayerVehicleID(playerid);
if(
GetVehicleModel(vehicle) == 560SendClientMessage(playerid,COLORE_ROSSO,"ERROR:You can't repair that vehicle.");
else
{
    if (
vehicle// if not 0, player is in vehicle
    
{
        
PlayerPlaySound(playerid11330.00.00.0);
        
RepairVehicle(vehicle);
        
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~V ehicle ~g~Repaired!",3000,3);
        
SetVehicleHealth(vehicle1000);
    }

thx you work !
Reply


Messages In This Thread
Help - by BlackEvils - 13.05.2015, 18:36
Re: Help - by Konstantinos - 13.05.2015, 18:39
Re: Help - by BlackEvils - 13.05.2015, 18:47

Forum Jump:


Users browsing this thread: 1 Guest(s)