04.01.2010, 12:12
Quote:
Originally Posted by Freddy Z
Can you be more specific? i don't even know how to check if a player is in team etc...
|
pawn Код:
new gTeam[MAX_PLAYERS];
If so then you use " if(gTeam[playerid] == 0) " // 0 as first team should be defined as team 0.
It's easy look, you just put this under OnPlayerSpawn callback :
pawn Код:
if(gTeam[playerid] == 0) { // Check if Player is in a first defined Team
new rand;
rand = random(sizeof(gTeam1Skins));
SetPlayerSkin(playerid, gTeam1Skins[rand][0]); // Then give him a random skin
}