07.03.2011, 18:11
pawn Код:
new Float:gRandomPoliceSkins[][] =
{
{280}, //SP LS Police officer
{284}, //Bike officer
{285}, //S.W.A.T Dude
{286}, //FBI Dude
{287} //Army Dude (Might put these on a different spawn, who knows...)
};
new Float:gRandomGangSkins[][] =
{
{102}, //Those 3 skins are all Ballas
{103},
{104},
{105}, //Now on, Families
{106},
{107},
{108}, //Vagos...
{109},
{110}
};
public OnPlayerSpawn(playerid)
{
if (gTeam[playerid] == POLICE )
{
SetPlayerSkin(playerid, random(sizeof(gRandomPoliceSkins));
}
else if (gTeam[playerid] == GANGS )
{
SetPlayerSkin(playerid, random(sizeof(gRandomGangSkins));
}
return 1;
}