Help with payday and stunt bounus - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with payday and stunt bounus (
/showthread.php?tid=439857)
Help with payday and stunt bounus -
Dare Devil..... - 27.05.2013
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
Re: Help with payday and stunt bounus -
DaRk_RaiN - 27.05.2013
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);
Re: Help with payday and stunt bounus -
S0n1COwnsYou - 27.05.2013
PHP код:
EnableStuntBonusForAll(0); - 1 to enable stunt bonuses or 0 to disable
new payday = random(400);
Re: Help with payday and stunt bounus -
CROSS_Hunter - 27.05.2013
pawn Код:
GivePlayerCash(i,payday);
There should be a Define code with this variable "payday"
Just Look for it and Post it here!