SA-MP Forums Archive
[Help] How I can add RP server Families! - 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: [Help] How I can add RP server Families! (/showthread.php?tid=123591)



[Help] How I can add RP server Families! - korana71 - 26.01.2010

How I can add RP server Families!
The map is Los Santos or give me in pm amx
Please Help me I very match need this

Families!
1. The Ballas Gang
2. Los Santos Vagos
3. The Grove Street Gang
4. EL Coronos Aztecas
5. Yakuza Family
6. La Cosa Nostra



Re: [Help] How I can add RP server Families! - akis_tze - 26.01.2010

learn how to make teams for start...


Re: [Help] How I can add RP server Families! - kmzr - 26.01.2010

You'll need
pawn Код:
new gTeam[MAX_PLAYERS]; // underneath 'includes' and 'defines'

// the name of your teams
#define TEAM_GROVE 0
#define TEAM_BALLAS 1

// now you need to define what team = what class.

 
SetPlayerTeamFromClass(playerid, classid)
{
  if(classid == 0)
   {
   gTeam[playerid] = TEAM_GROVE;
   return 1;
   }
  else if(classid == 1)
  {
  gTeam[playerid] = TEAM_BALLAS;
  return 1;
}

// now you can create commands for each team...
i'm not too good at pawn at the moment so i can't tell you how to save & load the teams when disconnecting/connecting.


Re: [Help] How I can add RP server Families! - korana71 - 27.01.2010

Quote:
Originally Posted by kmzr
You'll need
pawn Код:
new gTeam[MAX_PLAYERS]; // underneath 'includes' and 'defines'

// the name of your teams
#define TEAM_GROVE 0
#define TEAM_BALLAS 1

// now you need to define what team = what class.

 
SetPlayerTeamFromClass(playerid, classid)
{
  if(classid == 0)
   {
   gTeam[playerid] = TEAM_GROVE;
   return 1;
   }
  else if(classid == 1)
  {
  gTeam[playerid] = TEAM_BALLAS;
  return 1;
}

// now you can create commands for each team...
i'm not too good at pawn at the moment so i can't tell you how to save & load the teams when disconnecting/connecting.
Ok Tanks a lot but where i can put this code?


Re: [Help] How I can add RP server Families! - Nakash - 27.01.2010

He wrote you everything you need in the "//"s.