Quote:
Originally Posted by aRoach
pawn Код:
public OnPlayerSpawn(playerid) { pTeam[playerid] = team_civ; GivePlayerWeapon(playerid, 24, 90); SetPlayerColor(playerid, COLOR_WHITE);
switch(GetPlayerSkin(playerid)) { case 280: { pTeam[playerid] = team_lspd; GivePlayerWeapon(playerid, 24, 90); GivePlayerWeapon(playerid, 31, 1000); SetPlayerColor(playerid, COLOR_DBLUE); } case 287: { pTeam[playerid] = team_sasf; GivePlayerWeapon(playerid, 24, 90); GivePlayerWeapon(playerid, 31, 1000); SetPlayerColor(playerid, COLOR_GREEN); } } return 1; }
|
Couldent you use default: instead of the code you used above the switch statement?