Need help with this simple command
#2

pawn Код:
CMD:repair(playerid, params[])
{
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
        if(GetPlayerMoney(playerid) < amount) return SendClientMessage(playerid,-1,"you have no money enough"); // in amount put the amount u want to cust.
        GivePlayerMoney(playerid,- amount); // put here the amount u want to cust.
        RepairVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid, COLOR_PURPLE, "You repaired the vehicle");
        return 1;
}
Reply


Messages In This Thread
Need help with this simple command - by Songason - 19.07.2012, 13:34
Re: Need help with this simple command - by leonardo1434 - 19.07.2012, 13:37
Re: Need help with this simple command - by hansen111 - 19.07.2012, 13:38

Forum Jump:


Users browsing this thread: 1 Guest(s)