06.01.2014, 14:53
pawn Код:
CMD:radio(playerid, params[])
{
if(Player[playerid][qOrganizacao] == CIVIL)
return SendClientMessage(playerid, COR_BRANCA, "Vocк nгo faz parte de nenhuma org!");
if(sscanf(params, "s[128]", params[0]))
return SendClientMessage(playerid, COR_BRANCA, "USE: /radio [MENSAGEM]");
if(Player[playerid][qOrganizacao] == 1)
{
switch(Player[playerid][qCargo])
{
case 6: format(String, sizeof(String), "6єLнder %s: %s.", PlayerNick(playerid), params[0]);
case 5: format(String, sizeof(String), "5єSub-Lнder %s: %s.", PlayerNick(playerid), params[0]);
case 4: format(String, sizeof(String), "4єGerente %s: %s.", PlayerNick(playerid), params[0]);
case 3: format(String, sizeof(String), "3єFogueteiro %s: %s.", PlayerNick(playerid), params[0]);
case 2: format(String, sizeof(String), "2єCampana %s: %s.", PlayerNick(playerid), params[0]);
case 1: format(String, sizeof(String), "1єAviгozinho %s: %s.", PlayerNick(playerid), params[0]);
}
SendFamilyMessage(Player[playerid][qOrganizacao], COR_GROOVE_STREET, String);
}
return 1;
}