23.09.2017, 11:15
i made /asay cmd but when i type any message it doesn't work, it only show me Usage: /asay [message]
CODE :
CODE :
PHP код:
COMMAND:asay(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You're not allowed to use this command");
{
new input[100], message[250];
if(sscanf(params, "s[100]", input)) return SendClientMessage(playerid, COLOR_WHITE, "{FF6600}Usage: {FFFFFF}/asay [message]");
else
{
format(message, sizeof(message), "{3604FF}[ADMIN] {FFFFFF}%s", input);
SendClientMessageToAll(COLOR_WHITE, message);
}
}
return 1;
}