command for fix vehicle very simple question
#4

Quote:
Originally Posted by CueЯvo
just make a simple check

pawn Код:
if (strcmp("/fixv", cmdtext, true, 10) == 0)
    {
        new VehicleID = GetPlayerVehicleID(playerid);
        new money = GetPlayerMoney(playerid); // check the money
        if(money > 9999) // check if the player has more than 10000
        {
            RepairVehicle(VehicleID); // repair already sets the car hp to 1000, not needed to set it apart.
            GivePlayerMoney(playerid, - 10000);
        }
        return 1;
    }
You must make a money check, you can always check the wiki first.... https://sampwiki.blast.hk/
thanks its work perefect
Reply


Messages In This Thread
command for fix vehicle very simple question - by oOhossamOo - 21.06.2010, 05:03
Re: command for fix vehicle very simple question - by russo666 - 21.06.2010, 05:07
Re: command for fix vehicle very simple question - by CuervO - 21.06.2010, 05:09
Re: command for fix vehicle very simple question - by oOhossamOo - 21.06.2010, 05:16

Forum Jump:


Users browsing this thread: 1 Guest(s)