Help with Teams TEAM_POLICE etc...
#1

well i lately added teams to my blank gamemode

#define TEAM_POLITSEI in english it means police
#define TEAM_INIMENE in english it means civilians



how can i make that on spawn

Like Civilians get only Money
And Police gets Weapons
Reply
#2

Try this:

pawn Код:
#define TEAM_POLITSEI 1
#define TEAM_INIMENE 2
new gTeam[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
//This script is just an example, to make players automatically become a Police
gTeam[playerid] = TEAM_POLITSEI
}

public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_POLITSEI)
{
//Script For Police
}
else if(gTeam[playerid] == TEAM_INIMENE)
{
//Script For Civilian
}
}
Reply
#3

Thnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)