18.02.2009, 02:11
Check the player's team in OnPlayerSpawn(), then according to their team value, assign the correct weapons/skin.
Example:
Hope this helps,
Stephen
Example:
Код:
public OnPlayerSpawn(playerid) { if(gTeam[playerid] == TEAM_COP) { SetPlayerColor(playerid, COLOR_BLUE); SetPlayerPos(playerid, 2295.0293,2459.4961,10.8203); SetPlayerAmmo(playerid,24,400); SetPlayerAmmo(playerid,3,1); SetPlayerSkin(playerid, 280); } return 1; }
Stephen