script loading question
#4

Deactivate the (un)loading of filterscripts in onrconcommand.

pawn Код:
public OnRconCommand(cmd[])
{
    if(strcmp(cmd, "loadfs", true)==0)return 0;
    if(strcmp(cmd, "unloadfs", true)==0)return 0;
    if(strcmp(cmd, "reloadfs", true)==0)return 0;
    else return 1;
}
The rest you solve by putting the commands into OnPlayerCommand, where they will be able to check the IP/name/etc...

Need more help? If not, enjoy.

#Edit#: Correct me if i'm wrong...
Reply


Messages In This Thread
script loading question - by gangstajoe - 24.04.2010, 14:42
Re: script loading question - by aircombat - 24.04.2010, 14:47
Re: script loading question - by shady91 - 24.04.2010, 14:47
Re: script loading question - by DeathOnaStick - 24.04.2010, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)