Team Help
#5

Most basic way of teams with a command this wont save them though..

before your functions add

pawn Код:
#define team_lspd 1
#define team_crook 2
new pTeam[MAX_PLAYERS];
Defining the teams and then creating a variable to store them in.

Now on your OnPlayerCommandText add this

pawn Код:
if (strcmp("/cop", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, copcolor, "You are now a cop.");
    pTeam[playerid] = team_cop;
    SetPlayerSkin(playerid, 281);
    GivePlayerWeapon(playerid, 3, 0);
    }
      Return 1;
}
The last code is pretty self explanatory, Read it yourself and see why
Reply


Messages In This Thread
Team Help - by AchievementMaster360 - 30.11.2012, 11:01
Re: Team Help - by DaRk_RaiN - 30.11.2012, 11:07
Re: Team Help - by stabker - 30.11.2012, 12:08
Re: Team Help - by AchievementMaster360 - 01.12.2012, 20:35
Re: Team Help - by Lz - 01.12.2012, 21:25

Forum Jump:


Users browsing this thread: 2 Guest(s)