17.09.2011, 20:56
Hello, I have never come across this before but when I do /a message on my server it just sends a blank message. It never used to do it.
Here's my command.
Here's my command.
pawn Код:
CMD:a(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new achat[128], string[128];
if(sscanf(params, "s[128]", achat)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /a [message]");
switch(PlayerInfo[playerid][pAdmin])
{
case 1: format(string, sizeof(string), "{009DFF}Trial Mod %s: {FFFFFF}%s", PlayerName(playerid), achat);
case 2: format(string, sizeof(string), "{009DFF}Moderator %s: {FFFFFF}%s", PlayerName(playerid), achat);
case 3: format(string, sizeof(string), "{009DFF}Admin %s: {FFFFFF}%s", PlayerName(playerid), achat);
case 4: format(string, sizeof(string), "{009DFF}Lead Admin %s: {FFFFFF}%s", PlayerName(playerid), achat);
case 5: format(string, sizeof(string), "{009DFF}Owner %s: {FFFFFF}%s", PlayerName(playerid), achat);
}
SendAdminMessage(COLOR_WHITE, string);
}
else
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You don't seem to be an admin!");
}
return 1;
}