07.01.2013, 10:00
pawn Код:
switch(classid) {
case 0, 1, 2, 3, 4, 5: {
//SendClientMessageToAll(COLOR_VIOLETBLUE,"CITY OFFICIER");
}
case 6: {
//SendClientMessageToAll(COLOR_VIOLETBLUE,"SWAT");
}
case 7: {
//SendClientMessageToAll(COLOR_VIOLETBLUE,"FBI");
}
case 8: {
//SendClientMessageToAll(COLOR_VIOLETBLUE,"ARMY");
}
case 9: {
//SendClientMessageToAll(COLOR_VIOLETBLUE,"CIA");
}
case 10: {
//SendClientMessageToAll(COLOR_VIOLETBLUE,"CASUAL OFFICER - COP");
}
case 11: {
//SendClientMessageToAll(COLOR_VIOLETBLUE,"AIR - COP");
}
case 12: {
//SendClientMessageToAll(COLOR_VIOLETBLUE,"MARINE - COP");
}
case 13: {
//SendClientMessageToAll(COLOR_VIOLETBLUE,"MEDIC");
}
case 14, 15: {
//SendClientMessageToAll(COLOR_VIOLETBLUE,"MECHANIC");
}
case 16, 17: {
//SendClientMessageToAll(COLOR_VIOLETBLUE,"TAXI");
}
default: {
//SendClientMessageToAll(COLOR_VIOLETBLUE,"CIVILIAN");
}
}
TextDrawHideForPlayer(playerid, TextdrawM0);
TextDrawHideForPlayer(playerid, TextdrawM1);
TextDrawHideForPlayer(playerid, TextdrawT0);
TextDrawHideForPlayer(playerid, TextdrawT1);
TextDrawHideForPlayer(playerid, TextdrawC2);
TextDrawHideForPlayer(playerid, TextdrawC3);
TextDrawHideForPlayer(playerid, TextdrawC4);
TextDrawHideForPlayer(playerid, TextdrawC5);
TextDrawHideForPlayer(playerid, TextdrawC6);
TextDrawHideForPlayer(playerid, TextdrawC7);
TextDrawHideForPlayer(playerid, TextdrawC8);
TextDrawHideForPlayer(playerid, TextdrawC9);
TextDrawHideForPlayer(playerid, TextdrawR2);
TextDrawHideForPlayer(playerid, TextdrawR3);
TextDrawHideForPlayer(playerid, TextdrawR4);
TextDrawHideForPlayer(playerid, TextdrawR5);
TextDrawHideForPlayer(playerid, TextdrawR6);
TextDrawShowForPlayer(playerid, TextdrawC0);
TextDrawShowForPlayer(playerid, TextdrawC1);
TextDrawShowForPlayer(playerid, TextdrawCB2);
TextDrawShowForPlayer(playerid, TextdrawCB3);
TextDrawShowForPlayer(playerid, TextdrawCB4);
TextDrawShowForPlayer(playerid, TextdrawCB5);
TextDrawShowForPlayer(playerid, TextdrawCB6);
TextDrawShowForPlayer(playerid, TextdrawCB7);
TextDrawShowForPlayer(playerid, TextdrawCB8);
TextDrawShowForPlayer(playerid, TextdrawCB9);
TextDrawShowForPlayer(playerid, TextdrawC10);
TextDrawShowForPlayer(playerid, TextdrawC11);
TextDrawShowForPlayer(playerid, TextdrawC12);
TextDrawShowForPlayer(playerid, TextdrawC13);
TextDrawShowForPlayer(playerid, TextdrawC14);
TextDrawShowForPlayer(playerid, TextdrawC15);
TextDrawShowForPlayer(playerid, TextdrawC16);
TextDrawShowForPlayer(playerid, TextdrawC17);
You can use case default for Civilian.