SA-MP Forums Archive
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: Factions (/showthread.php?tid=169593)



Factions - GangsTa_ - 20.08.2010

Can someone help me with factions?
I want Sheriff, Medic, Mayor, and News that's all


Re: Factions - Darklom - 20.08.2010

Could you explain? Which gamemode are you doing (Or starting from scratch).. add more information please.


Re: Factions - GangsTa_ - 20.08.2010

Yeah I just started MY OWN RP server not GF edit.
I've just made the Objects , Cars, Houses made, etc.
But I need something to start so I think Factions


Re: Factions - Darklom - 20.08.2010

I don't seem to get the question here, are you asking us to make the faction system for you?
IF so explain how you want it and such


Re: Factions - GangsTa_ - 20.08.2010

Eh. I want 4 Factions : Sheriff, Medic, Mayor, News.
The owner of each can be invited by admin.
The member to be invited by Faction Owners.
Also(/uninvite commands)
When people get invited, the their team should save.
When they get uninvited, the team gets to TEAM_CIVIL

TEAM_SHERIFF
TEAM_MEDIC
TEAM_MAYOR
TEAM_NEWS


Re: Factions - GangsTa_ - 20.08.2010

bump *****


Re: Factions - GangsTa_ - 20.08.2010

bump *************


Re: Factions - Cameltoe - 20.08.2010

DON'T TRIPLE POST.

http://forum.sa-mp.com/showthread.ph...highlight=team

Nice tutorial on how to set up teams.


Re: Factions - playbox12 - 20.08.2010

Also why are you starting to make an GM, if you don't know how to make a faction system..


Re: Factions - Voldemort - 21.08.2010

Quote:
Originally Posted by GangsTa[MD]
Посмотреть сообщение
Yeah I just started MY OWN RP server not GF edit.
++


To make new faction , I suggest what to do:

1.
#define SHERIFF 0
#define MEDIC 1
#define MAYOR 2
#define NEWS 3

enum pinfos
{
Faction,
}
new Pinfo[MAX_PLAYERS][pinfos];

When admin do a cmd, like /makeleader or /setfaction.

player Faction sets to MEDIC etc,

so later in script you dont have to worry about to remember faction IDs
Example:
if(Pinfo[playerid][Faction] == SHERIFF)
{
Arrest
}

If you have seen GF faction system , i suggest you to not make Member/Leader, but define Leader as rank 7, so you dont need double check if Leader == Sheriff and if Member Sheriff

I hope you understand what I wriote, if you have any questions, go ahead.