How to create RP's Faction? - 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: How to create RP's Faction? (
/showthread.php?tid=421286)
How to create RP's Faction? -
dieuhanhphuc - 09.03.2013
I use zGaming Roleplay Gamemode. I want to add new faction. But I don't know how to do it.
This gamemode use function IsACop for LAPD. I don't know how to create function like that.
I have read some Tutorial but did not help. You can download gamemode zGaming Roleplay at this link: https://sampforum.blast.hk/showthread.php?tid=350747
Can anyone help me plz
//Sorry for my bad english ...
Re: How to create RP's Faction? -
Glad2BeHere - 09.03.2013
pawn Код:
new [MAX_PLAYERS]; // create a variable
and the execute a function if variable is = 1....
and try reading threw the code next time and learning how the variables work
stock IsACop(playerid)
{
if(Cop[playerid] == 1) return 1;
return 0;
}
Re: How to create RP's Faction? -
Don_Cage - 09.03.2013
Good tip is that you watch how other factions are made and you start by copy from your other factions and just change name,rank,hq,cars etc.. I learned how to create factions like that. Just remember to change everything you copy to something new so it wont be some small misstake like example you making another law faction and you add the duty point but forgets to edit who can use it or stuffs like that