30.03.2013, 00:32
pawn Код:
COMMAND:asay(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid][AdminLevel] >= 1)
{
new text[128];
if(sscanf(params, "s[128]", text))
{
SendClientMessage(playerid,RED,"Usage: /asay <message>");
return 1;
}
new string[128];
format(string, sizeof(string), "* Admin %s: %s", GetName(playerid), text);
SendClientMessageToAll(RED,string);
}
else
{
SendClientMessage(playerid, RED,"You can't use this commands!");
}
return 1;
} // If you want it but with SendClientMessage