Help for announce command
#1

Hello, I'm making an announce filterscript, finaly it doesn't give errors anymore but now IG it says:
"Unknown command"
Here is my source:

Код:
#define FILTERSCRIPT

#include <a_samp>
#include <sscanf>
#include <zcmd>

forward OnPlayerCommandText(playerid, cmdtext[]);
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/announce", true))
    {
        if(!IsPlayerAdmin(playerid))
        {
            if(strlen(cmdtext) < 10)
            {
                return 1;
            }
            new gText[128];
            format(gText, sizeof(gText), "%s", cmdtext[10]);
            GameTextForAll(gText, 5000, 3);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Help for announce command - by mitchboy - 14.04.2011, 13:57
Re: Help for announce command - by Seven_of_Nine - 14.04.2011, 14:06
Re: Help for announce command - by Sascha - 14.04.2011, 14:59
Re: Help for announce command - by HyperZ - 14.04.2011, 15:14

Forum Jump:


Users browsing this thread: 1 Guest(s)