17.09.2011, 21:10
pawn Код:
CMD:a(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new achat[256];
if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /a [message]");
switch(PlayerInfo[playerid][pAdmin])
{
case 1: format(achat, sizeof(achat), "{009DFF}Trial Mod %s: {FFFFFF}%s", PlayerName(playerid), achat);
case 2: format(achat, sizeof(achat), "{009DFF}Moderator %s: {FFFFFF}%s", PlayerName(playerid), achat);
case 3: format(achat, sizeof(achat), "{009DFF}Admin %s: {FFFFFF}%s", PlayerName(playerid), achat);
case 4: format(achat, sizeof(achat), "{009DFF}Lead Admin %s: {FFFFFF}%s", PlayerName(playerid), achat);
case 5: format(achat, sizeof(achat), "{009DFF}Owner %s: {FFFFFF}%s", PlayerName(playerid), achat);
}
SendAdminMessage(COLOR_WHITE, achat);
}
else
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You don't seem to be an admin!");
}
return 1;
}