Regular PayDay - 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: Regular PayDay (
/showthread.php?tid=275904)
Regular PayDay -
Tautwis - 11.08.2011
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...
Re: Regular PayDay -
Tautwis - 11.08.2011
Any ideas ?
Re: Regular PayDay -
Jmarr - 12.08.2011
You could create a timer to trigger every x hours or so and give the player the money, maybe that'll work?
Re: Regular PayDay -
Davz*|*Criss - 12.08.2011
Tuatwis look there is already an FS about that, Please use search button and i hope you will get it.
Thanks.
Re: Regular PayDay -
dat_nguyen - 25.08.2011
you like me
Re: Regular PayDay -
Dragony92 - 25.08.2011
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