04.11.2012, 21:04
pawn Код:
CMD:GA(playerid, params[])
{
new text[128], string[128], playername[MAX_PLAYER_NAME];
if(sscanf(params, "s", text)) return SendClientMessage(playerid, 0xAD0000AA, "USE: /GA [MENSAGEM]");
if(pDados[playerid][Organizacao] == 0) return SendClientMessage(playerid, 0xAD0000AA, "Vocк nгo participa de nenhuma organizaзгo!");
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(Gang) %s [Cargo: %d] diz: %s", playername, pDados[playerid][Cargo], text);
SendFamilyMessage(pDados[playerid][Organizacao], COR_RAD, string);
return 1; !
}