Regular PayDay
#1

Hello. I have Raven's RP GameMode, and i have a question. How to make a regular payday? For example: I am the police leader, and i want to get every payday, same money. If i am lower rank worker, i every payday get lower payday. But now, doesn't matter where i work, i get random money. from 700 to 5000 i think. I think you understood me . Waiting for answers...
Reply
#2

Any ideas ?
Reply
#3

You could create a timer to trigger every x hours or so and give the player the money, maybe that'll work?
Reply
#4

Tuatwis look there is already an FS about that, Please use search button and i hope you will get it.

Thanks.
Reply
#5

you like me
Reply
#6

Find old public payday and put it in comment...
Here is example for your payday..... You need to change money valule and to add other factions...
pawn Код:
SetTimer("PayDay", 60000, 1);
forward PayDay();
public PayDay
{
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
        if(PlayerInfo[playerid][pLeader] == 1) { SafeGivePlayerMoney(playerid, 1000); }
        else if(PlayerInfo[playerid][pRank] == 1) { SafeGivePlayerMoney(playerid, 100); }
        else if(PlayerInfo[playerid][pRank] == 2) { SafeGivePlayerMoney(playerid, 200); }
        else if(PlayerInfo[playerid][pRank] == 3) { SafeGivePlayerMoney(playerid, 300); }
        else if(PlayerInfo[playerid][pRank] == 4) { SafeGivePlayerMoney(playerid, 400); }
        else if(PlayerInfo[playerid][pRank] == 5) { SafeGivePlayerMoney(playerid, 500); }
        else if(PlayerInfo[playerid][pRank] == 6) { SafeGivePlayerMoney(playerid, 600); }
        else if(PlayerInfo[playerid][pRank] == 7) { SafeGivePlayerMoney(playerid, 700); }
        else if(PlayerInfo[playerid][pRank] == 8) { SafeGivePlayerMoney(playerid, 800); }
    }
    else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
        if(PlayerInfo[playerid][pLeader] == 1) { SafeGivePlayerMoney(playerid, 2000); }
        else if(PlayerInfo[playerid][pRank] == 1) { SafeGivePlayerMoney(playerid, 200); }
        else if(PlayerInfo[playerid][pRank] == 2) { SafeGivePlayerMoney(playerid, 400); }
        else if(PlayerInfo[playerid][pRank] == 3) { SafeGivePlayerMoney(playerid, 600); }
        else if(PlayerInfo[playerid][pRank] == 4) { SafeGivePlayerMoney(playerid, 800); }
        else if(PlayerInfo[playerid][pRank] == 5) { SafeGivePlayerMoney(playerid, 1000); }
        else if(PlayerInfo[playerid][pRank] == 6) { SafeGivePlayerMoney(playerid, 1200); }
        else if(PlayerInfo[playerid][pRank] == 7) { SafeGivePlayerMoney(playerid, 1400); }
        else if(PlayerInfo[playerid][pRank] == 8) { SafeGivePlayerMoney(playerid, 1600); }
    }
    return 1;
}
rep +1 tnx
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)