[Help] How I can add RP server Families!
#1

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
Reply
#2

learn how to make teams for start...
Reply
#3

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.
Reply
#4

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?
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)