02.10.2011, 14:37
pawn Код:
ocmd:armyradio(playerid,params[])
{
for(new i = 0; i < MAX_PLAYERS; i++)// LOL
{
if(GetPVarInt(playerid,"Survivor")==2)
{
if(GetPVarInt(i,"Survivor")==2)
{
new string[256],text[128];
if(sscanf(params,"s",text))return SendClientMessage(playerid,red,"/armyradio [text]");//just "s" for an text
format(string,/*256 LoL*/128,"{41A600}[ARMY RADIO] {00EBFF}%s: {FF5A00}%s",PlayerName(playerid),text);
SendClientMessage(i,red,string);
}
}
}
return 1;
}