Filterscript
#1

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?
Reply
#2

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)