DIALOGS HELP PLEASE !!!
#2

Can you list which weapons close the dialog? (If I had to guess it would be the M4, Sawn-Off, Deagle, and Armor).

And for your command:
pawn Код:
if(strcmp(cmdtext, "/fix", true) == 0)
    {
        new healt, vehicleid;
        vehicleid = GetPlayerVehicleID(playerid);
        GetVehicleHealth(vehicleid, healt);
        if(healt < 800.0)
        {
            SetVehicleHealth(vehicleid, 1000);
            //RepairVehicle(vehicleid);
        }
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, RED, "You are not in any vehicle.");
        SendClientMessage(playerid, RED, "Your vehicle has been successfully repaired!");
        return 1;
    }
Also, if you want it to repair the physical damage, like the damage you can see, use RepairVehicle(vehicleid). SetVehicleHealth makes the health of the vehicle to 1000 but if its damaged on the outside it will still look damaged.
Reply


Messages In This Thread
DIALOGS HELP PLEASE !!! - by Rafa - 26.11.2010, 18:48
Re: DIALOGS HELP PLEASE !!! - by randomkid88 - 26.11.2010, 18:58
Re: DIALOGS HELP PLEASE !!! - by Mehtab - 26.11.2010, 19:00
Re: DIALOGS HELP PLEASE !!! - by randomkid88 - 26.11.2010, 19:01
Re: DIALOGS HELP PLEASE !!! - by Rafa - 26.11.2010, 19:20
Re: DIALOGS HELP PLEASE !!! - by randomkid88 - 26.11.2010, 19:33
Re: DIALOGS HELP PLEASE !!! - by Rafa - 26.11.2010, 20:10
Re: DIALOGS HELP PLEASE !!! - by Jeffry - 26.11.2010, 20:12
Re: DIALOGS HELP PLEASE !!! - by Rafa - 26.11.2010, 20:15
Re: DIALOGS HELP PLEASE !!! - by Rafa - 26.11.2010, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)