02.10.2012, 17:54
pawn Код:
CMD:shout(playerid, params[])
{
new string[128], textm[128];
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /shout [text]");
if(!AntiAdv(playerid, params))
{
format(string, sizeof(string), "%s shouts: %s!", NAMEGET(playerid), params);
NearMessageSender(playerid, 22, string, COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2);
}
else if(IsMasked[playerid] == 1)
{
format(textm, sizeof(textm), "Stranger shouts: %s!", params);
NearMessageSender(playerid, 22, string, COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2,COLOR_FADE2);
}
return 1;
}