27.11.2009, 17:06
You can do it like that but not exactly how you had it. The way you had it the second time would cause errors because you can't have extra code in the switch part. But if you put it outside of the switch statement it will work.
pawn Код:
if(CurrentMenu == CopOnD)
{
switch(row)
{
case 0:SetPlayerSkin(playerid, 71);
case 1:SetPlayerSkin(playerid, 280);
case 2:SetPlayerSkin(playerid, 281);
}
gTeam[playerid] = TEAM_WSPD;
SetPlayerColor(playerid, COLOR_BLUE);
GivePlayerWeapon(playerid,24,100);
GivePlayerWeapon(playerid,3,1);
SendClientMessage(playerid, COLOR_WSPD, "You're on Cop Duty, shoot ($100) or jail ($150) some criminals");
}