31.12.2012, 22:45
pawn Код:
Par dйfaut Admin Announce Command
Code:
CMD:adminann(playerid, params[])
{
if(PlayerInfo[playerid][pAdminLevel] >= 2)
{
if(!params[8])
{
new str[128];
SendClientMessageToAll(COLOR_LIGHTBLUE, "|~~~~~~~~~~ Admin Announcement~~~~~~~~~~|");
format(str, sizeof(str), "%s %s", str, params[0]);
SendClientMessageToAll(COLOR_GREEN, str);
SendClientMessageToAll(COLOR_LIGHTBLUE,"|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /adminann [text]");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not an admin");
return 1;
}
return 0;
}