13.10.2014, 18:05
pawn Код:
case 20:
{
switch(PlayerInfo[playerid][pRank])
{
case 1: rank = "Deputy";
case 2: rank = "Deputy (II)";
case 3: rank = "Sergeant";
case 4: rank = "Lieutenant";
case 5: rank = "Captain";
case 6: rank = "Commander";
case 7: rank = "Deputy Commisioner";
case 8: rank = "Commisioner";
default: rank = "Cadet";
}
switch(PlayerInfo[playerid][pDivision])
{
case 1: division = "(PATROL) ";
case 2: division = "(CIB) ";
case 3: division = "(TRAFFIC) ";
case 4: division = "(TNT) ";
case 5: division = "(HVE) ";
default: division = "";
}
format(string, sizeof(string), "** %s%s %s: %s **", rank, division, GetPlayerNameEx(playerid), params);
SendRadioMessage(19, RADIO, string);
}
default:
{
SendClientMessageEx(playerid,COLOR_GRAD2,"You're not in a faction.");
break;
}