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=143877)



Factions - Tony1337 - 24.04.2010

Hey Again Guys! Alright today I'm working on Factions, I have a general knowledge of scripting but i was wondering if anyone could show me how to create factions? That would be awesome. Thanks!!!


Re: Factions - Donuts - 24.04.2010

I would suggest you to see one of the millions of the Godfather gamemode edits, once you read the proccess you will understand how to make it.


Re: Factions - Steven82 - 24.04.2010

Код:
#define TEAM_TEAMHERE
#define TEAM_TEAMHERE
// on and on and on
new gTeam[MAX_PLAYERS];
and thats it to make a team only command read this ex.
Код:
if (strcmp("/example", cmdtext, true, 10) == 0)
{
if(gTeam == TEAM_TEAMHERE)
{
SendClientMessage(playerid,COLOR,"This is an example");
}
else
{
SendClientMessage(playerid,COLOR,"You are nto that team");
}
return 1;
}
thats it hope i helped a little


Re: Factions - Jakku - 24.04.2010

Search.

There are some tutorials as I've seen
http://forum.sa-mp.com/index.php?action=search