19.02.2019, 12:03
Then do this: make a variable like this new CheckTeam[MAX_PLAYERS] = 0;
Then go to that place where you set his team and skin. For the first team under setting skin do this: CheckTeam[playerid] = 1;
And for another team the same thing but value should be 2.
And then go to onplayerspawn and make this
public OnPlayerSpawn(playerid)
{
if(CheckTeam[playerid] == 1)
{
//put here the thing for team 1 like skin and guns etc.
}
if(CheckTeam[playerid] == 2)
{
//Here put the things for team 2
}
return 1;
}
Then go to that place where you set his team and skin. For the first team under setting skin do this: CheckTeam[playerid] = 1;
And for another team the same thing but value should be 2.
And then go to onplayerspawn and make this
public OnPlayerSpawn(playerid)
{
if(CheckTeam[playerid] == 1)
{
//put here the thing for team 1 like skin and guns etc.
}
if(CheckTeam[playerid] == 2)
{
//Here put the things for team 2
}
return 1;
}