04.04.2011, 22:38
maybe this
pawn Код:
COMMAND:radio(playerid, params[])
{
if (!strlen(params[0])) return SendClientMessage(playerid,White,"Usage: /radio [Message]");
new pname[MAX_PLAYER_NAME],string[128];
GetPlayerName(playerid,pname,sizeof(pname));
if(Leader[playerid] == 3)
{
format(string,sizeof (string), "** Command Chief Master %s: %s, over **",pname, params[0]);
SendClientMessageToAll(0x8F8F8FFF,string);
}
else if(Member[playerid] == 3)
{
format(string, sizeof (string), "** Member %s: %s, over **",pname, params[0]);
SendClientMessageToAll(0x8F8F8FFF,string);
}
return 1;
}