How can i increase the payday on My Server?? Included Payday Code - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: How can i increase the payday on My Server?? Included Payday Code (
/showthread.php?tid=457459)
How can i increase the payday on My Server?? Included Payday Code -
Samieastwood - 11.08.2013
Help Thanks
http://pastebin.com/DSeDsRWj
Tell me to include anything else if needed
Re: How can i increase the payday on My Server?? Included Payday Code -
Mitchy - 11.08.2013
Why use an edited script
Re: How can i increase the payday on My Server?? Included Payday Code -
Samieastwood - 11.08.2013
No i dont use that i have an script of mine but i was trying it my friend send me it and he said to find how to edit payday
Re: How can i increase the payday on My Server?? Included Payday Code -
Mauzen - 12.08.2013
Wow, you made a gamemode by yourself, but are unable to solve the most basic scripting problems?
At the very top theres a variable called paycheck? Did you consider that this might be value you wanna change?
Re: How can i increase the payday on My Server?? Included Payday Code -
Dubya - 12.08.2013
pawn Код:
// change code
new paycheck = checks - Taxable - faretax;
paycheck += 5000; // Add amount here, I set it to $5,000 extra from what they already have.
if(PlayerInfo[i][pMember] != 0 && PlayerInfo[i][pMember] != 8 && PlayerInfo[i][pMember] != 13 && Tax >= 0)
{
new facmemberpay = FactionPay[PlayerInfo[i][pMember]-1][PlayerInfo[i][pRank]];
GivePlayerCash(i, facmemberpay);
}
GivePlayerCash(i, paycheck);
GameTextForPlayer(i, "~y~PayDay~n~~w~Paycheck", 5000, 1);
SendAudioToPlayer(i, 1184, 100, 0);
PlayerInfo[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
PlayerInfo[i][pConnectTime] += 1;
if(PlayerInfo[i][pConnectTime] == 2) SendClientMessageEx(i, COLOR_LIGHTRED, "You may now possess/use weapons!");
if(PlayerInfo[i][pDonateRank] > 0)
{
PlayerInfo[i][pPayDayHad] += 1;
if(PlayerInfo[i][pPayDayHad] >= 5)
{
PlayerInfo[i][pExp]++;
PlayerInfo[i][pPayDayHad] = 0;
}
}
if(PlayerInfo[i][pWRestricted] > 0)
{
PlayerInfo[i][pWRestricted]--;
if(PlayerInfo[i][pWRestricted] == 0) SendClientMessageEx(i, COLOR_LIGHTRED, "Your weapons are no longer restricted!");
}
}
else
{
SendClientMessageEx(i, COLOR_LIGHTRED, "* You haven't played long enough to obtain a paycheck.");
}
}
}