04.01.2010, 11:10
-Random Skins-
// At the top of the script
Then go to OnPlayerSpawn callback, and check if player is in a team 1 ' if(gTeam or PlayerInfo whatever you have).
and set random skin spawn like that :
// At the top of the script
pawn Код:
new gTeam1Skins[3][3] = {
{126}, // Skin Id's
{124},
{113}
};
new gTeam2Skins[3][3] = {
{280}, // Skin Id's
{282},
{285}
};
and set random skin spawn like that :
pawn Код:
new rand;
rand = random(sizeof(gTeam1Skins));
SetPlayerSkin(playerid, gTeam1Skins[rand][0]);