28.01.2017, 21:51
How can i make mission bonus in this code. If he overload his vehicle. he get 3000 but bonus another 3000 so that's $6000
// This one right (without bonus)
// Need bonus Cash
// This one right (without bonus)
Код:
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]); }
Код:
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]); }