25.03.2013, 03:23
How do I actualy make each salary for each job? Basicaly I want to define the salaries but I dont know how.
For the jobs I use for example
Here is what I did so far and it works. But I need to define the salaries :/
For the jobs I use for example
Код:
if(PlayerInfo[playerid][pJob] == 1) //If the jobs is Drug dealer if(PlayerInfo[playerid][pJob] == 1) //If the jobs is gun dealer
Код:
public PayDay(playerid) { for (new i; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { new nxtlevel = PlayerInfo[playerid][pLevel]; new payday = nxtlevel*0; GivePlayerMoney(i,payday); PlayerInfo[playerid][pExp]++; GameTextForPlayer(i," ~p~ PayDay",6,5000); if(PlayerInfo[playerid][pVIPlevel] == 0) { SendClientMessage(playerid, COLOR_YELLOW, "[Payday] [Payday]"); SendClientMessage(playerid, COLOR_GREEN, "Paycheck: 150$"); SendClientMessage(playerid, COLOR_GREEN, "Boost: +1 playing hour!"); SendClientMessage(playerid, COLOR_YELLOW, "[Payday] [Payday]"); GivePlayerMoney(playerid, 150); } if(PlayerInfo[playerid][pVIPlevel] == 1) { SendClientMessage(playerid, COLOR_YELLOW, "[Payday] [Payday]"); SendClientMessage(playerid, COLOR_GREEN, "Paycheck: 150$"); SendClientMessage(playerid, COLOR_GREEN, "Boost: +1 playing hour!"); SendClientMessage(playerid, COLOR_GREEN, "Bronze Donator: +100!"); SendClientMessage(playerid, COLOR_YELLOW, "[Payday] [Payday]"); GivePlayerMoney(playerid, 250); } if(PlayerInfo[playerid][pVIPlevel] == 2) { SendClientMessage(playerid, COLOR_YELLOW, "[Payday] [Payday]"); SendClientMessage(playerid, COLOR_GREEN, "Paycheck: 150$"); SendClientMessage(playerid, COLOR_GREEN, "Boost: +1 playing hour!"); SendClientMessage(playerid, COLOR_GREEN, "Gold Donator: +200!"); SendClientMessage(playerid, COLOR_YELLOW, "[Payday] [Payday]"); GivePlayerMoney(playerid, 350); } PlayerPlayMusic(playerid); } } }