Help with payday and stunt bounus
#1

pawn Код:
public Payday()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new nxtlevel;
            nxtlevel = PlayerInfo[i][pLevel]+1;
            new string[128];
            format(string, sizeof(string), "~y~PayDay~n~~w~Paycheck");
            GameTextForPlayer(i, string, 5000, 1);
            new payday = nxtlevel*1000;
            GivePlayerCash(i,payday);
            PlayerInfo[i][pExp]++;
        }
    }
    return 1;
}
This is my payday function how can I reduce the amount given to players its like 3k now where as I want it to be $300-$400 only

Another thing How can I turn off stunt bounouses
Reply
#2

For the payday you could reduce it by changing this
pawn Код:
new payday = nxtlevel*1000;//Changing the 1000 to 100 would reduce it to 300 like you mentioned above so the code will be like this:
new payday = nxtlevel*100;//Corrent code.
And to disable the stunt bonus add this under OnGameModeInIt
pawn Код:
EnableStuntBonusForAll(0);
Reply
#3

PHP код:
EnableStuntBonusForAll(0); -     1 to enable stunt bonuses or 0 to disable
new payday random(400); 
Reply
#4

pawn Код:
GivePlayerCash(i,payday);
There should be a Define code with this variable "payday"

Just Look for it and Post it here!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)