25.08.2011, 11:58
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...
rep +1 tnx
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;
}