05.07.2014, 02:19
Hello , i Got a script got an IRC with its cmds but when i open this IRC it says "I am not allowed to use this cmd" although i registed this irc channel and owner in it
IRCCMD:say(botid, channel[], user[], host[], params[])
{
new
eText [ 128 ],
eString[ 256 ];
if(!IsEchoChannel(channel)) return iNotice( user, IRC_WRONG_CHANNEL);
if(!IRC_IsHalfop (botid, channel, user)) return iNotice( user, "** Sorry, but you cannot use this command!");
if(sscanf(params, "s", eText)) return iEchoUse("!say [ message ]");
if(strlen(eText) > 100) return iEchoUse("!say [ message ] (MSG TOO LONG)");
format( eString, sizeof( eString ), "10(ToServer): %s: %s", user, eText);
iEcho( eString );
format( eString, sizeof( eString), " {FFFFFF}[Echo] {00FF7F}%s: %s", user, eText);
SendMessageToAll(COLOR_ADMIN_SPYREPORT, eString);
return 1;
}