SA-MP Forums Archive
How do I make factions/gangs? - 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: How do I make factions/gangs? (/showthread.php?tid=81059)



How do I make factions/gangs? - Tyrone1234 - 08.06.2009

How do you create a faction or gang from scratch? And when I add cars to the HQ, how do I make them only for that faction.

Im new to scripting and just trying to figure out a few things.


Re: How do I make factions/gangs? - Correlli - 08.06.2009

If you're new to the scripting then first learn basics. Creating your own factions/gangs is a bit hard for beginner.
https://sampwiki.blast.hk/wiki/Category:..._Documentation


Re: How do I make factions/gangs? - [HiC]TheKiller - 08.06.2009

Quote:
Originally Posted by Don Correlli
If you're new to the scripting then first learn basics. Creating your own factions/gangs is a bit hard for beginner.
https://sampwiki.blast.hk/wiki/Category:..._Documentation
1. It's not that hard. Also the link is https://sampwiki.blast.hk/wiki/PAWN_tutorial for the gangs.
2. For #2 just use something like this:

pawn Code:
new Vehicle1=AddStaticVehicle(/*Change this to your add static vehicles etc..*/);
new Vehicle2=AddStaticVehicle(/*Change this to your add static vehicles etc..*/);
pawn Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  if(vehicleid == Vehicle1 || vehicleid == Vehicle2 && /*The gang variable equals 0*/)
  {
    RemovePlayerFromVehicle(playerid);
  }
  return 1;
}