How to make Mission bonus
#3

Quote:
Originally Posted by Eoussama
Посмотреть сообщение
I don't get it, what's the problem here?
// This one right (without bonus) ($3000)
Код:
    if(TruckLoad[playerid] == 0)
    {
        SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
       	format(Message, sizeof(Message), "You earned $i", trucker[End][cost]);
	    SendClientMessage(playerid, -1, Message);
            GivePlayerMoney(playerid, trucker[End][cost]);
    }
Extra Cash
// Need bonus Cash (Another $3000 so that's $6000 earned)
Код:
    if(TruckLoad[playerid] == 1)
    {
        SetPlayerScore(playerid, GetPlayerScore(playerid) + 2);
       	format(Message, sizeof(Message), "You earned $i and bonus", trucker[End][cost]);
    	SendClientMessage(playerid, -1, Message);
        GivePlayerMoney(playerid, trucker[End][cost]);
    }
I have a /overload command that toggles. If he do overload then completed the mission he get extra cash

array: 3000 is cash
Код:
{1, 2420.6235,-2464.2495,13.6250, "Los Santos Warehouse", "Weapons", 1538.4180,-1674.5314,13.5469, "Los Santos Police Station", 3000}
Reply


Messages In This Thread
How to make Mission bonus - by DerickClark - 28.01.2017, 21:51
Re: How to make Mission bonus - by Eoussama - 28.01.2017, 22:14
Re: How to make Mission bonus - by DerickClark - 28.01.2017, 22:20
Re: How to make Mission bonus - by Eoussama - 28.01.2017, 22:23
Re: How to make Mission bonus - by DerickClark - 28.01.2017, 22:33

Forum Jump:


Users browsing this thread: 1 Guest(s)