SA-MP Forums Archive
Filterscript - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Filterscript (/showthread.php?tid=481452)



Filterscript - Mattakil - 15.12.2013

In a filterscript I made, all commands return 1, and should work, though in the server if I load the filterscript it always says "SERVER:UNKNOWN COMMAND", and the command doesn't work, What function could block this?


Re: Filterscript - SilentSoul - 15.12.2013

Could you show us any command ? , also please show me your
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])



Re: Filterscript - Mattakil - 15.12.2013

pawn Код:
CMD:report(playerid, params[])
{
    new string[128];
    if(strlen(params)>=100)return ErrorMessage(pid, "Max report length is 100.");
    format(string, sizeof(string), "[Report] %s {%d}: %s", GetName(playerid), playerid, params);
    SCM(pid, COLGREEN, string);
    SCM(pid, COLGREEN, "Your message has been sent to online admins!");
    foreach (new i : Player)
    {
        if(PlayerInfo[i][pAdmin] >=1)
        {
            SCM(i, COLGREEN, string);
        }
    }
    print(string);
    return 1;
}
It works in the gamemode..And im not using OnPlayerCommandText or OnPlayerCommandPerformed atm