28.09.2010, 23:53
Hey, folks. So I have this command (/say) but it does not fully work.
The command will actually display only numbers, not letters or special characters. Plus, it gives the "SERVER: UNKNOWN COMMAND!" message...
pawn Код:
command(say, playerid, params[])
{
new message, string[128];
if(PlayerStatistics[playerid][pAdminLevel] >= 3)
{
if(sscanf(params, "s[119]", message))
{
SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /say [message]");
}
else
{
if(IsPlayerConnectedEx(playerid))
{
format(string, sizeof(string), "* Admin: %s", message);
SendClientMessageToAll(0x2587CEFF, string);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You are not logged in!");
}
}
}
return 1;
}