Posts: 51
Threads: 12
Joined: Jun 2010
Reputation:
0
You could create a timer to trigger every x hours or so and give the player the money, maybe that'll work?
Posts: 780
Threads: 58
Joined: Jan 2011
Reputation:
0
Tuatwis look there is already an FS about that, Please use search button and i hope you will get it.
Thanks.
Posts: 484
Threads: 49
Joined: Feb 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