01.12.2013, 22:47
When I do my megaphone command, it doesnt return the message. All my other chats use proxdetect and they work fine, but this one simply does not. The error messages work fine if they have to.
pawn Код:
CMD:megaphone(playerid, params[])
{
if(!IsPlayerLEO(playerid)) return ErrorMessage(pid, "You are not LEO.");
new string[128], message[100];
if(sscanf(params,"s", message)) return UsageMessage(pid, "/m(egaphpone) [message]");
format(string, sizeof(string), "[Megaphone]: %s", message);
ProxDetector(50.0, playerid, string, 0xFF8C00AA);
return 1;
}