SA-MP Forums Archive
Payday for Factions - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Payday for Factions (/showthread.php?tid=163990)



Payday for Factions - Fran07 - 29.07.2010

Hello.
I wanted to know how I can put on each faction a different payday.
I want each faction (according to rank within the faction) charge a different payday.
A fixed price.

For example:
-LSPD-
Rank 1: 400
Rank 2: 500 ...


I hope your help. Thank you.


Re: Payday for Factions - Blt950 - 29.07.2010

Have the payday still in 1 function. You have 2 options now

1. When player join a faction, you can make it save in it's file. And load that array in when the paydays are happening

2. You check the players faction in the payday function, and when it's cop: then = ### when it's FBI = ####
Save that into a array and subtract it later or add. Depends how your Payday function is working.