Problem with this announce dcmd
#3

Quote:
Originally Posted by funky1234
Посмотреть сообщение
Have you logged in as rcon admin before you perform this command?

"/rcon logon {pass}"
I tryed using it typing it first without logging in.


pawn Код:
dcmd_ann(playerid, params[])
{
    if(IsPlayerAdmin(playerid)) {
        if (!strlen(params))
        {
            SendClientMessage(playerid,COLOR_RED2, "USAGE: /ann [text]");
            return 1;
        }

        TextDrawDestroy(Textdraw8);
        Textdraw8 = TextDrawCreate(308.000000,200.000000, params);
        TextDrawAlignment(Textdraw8,2);
        TextDrawBackgroundColor(Textdraw8,0x000000ff);
        TextDrawFont(Textdraw8,3);
        TextDrawLetterSize(Textdraw8,1.100000,1.899999);
        TextDrawSetOutline(Textdraw8,1);
        TextDrawSetProportional(Textdraw8,1);
        TextDrawSetShadow(Textdraw8,10);
        TextDrawShowForAll(Textdraw8);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED2,"Your not an admin");
    }
    return 1;
}
and maybe this will work?

EDIT: I've added this

pawn Код:
dcmd(ann,4,cmdtext);
Maybe thats why it don't work.
Reply


Messages In This Thread
Problem with this announce dcmd - by Jay. - 01.08.2010, 08:26
Re: Problem with this announce dcmd - by Ash. - 01.08.2010, 08:32
Re: Problem with this announce dcmd - by Jay. - 01.08.2010, 08:34
Re: Problem with this announce dcmd - by Ash. - 01.08.2010, 08:36
Re: Problem with this announce dcmd - by Jay. - 01.08.2010, 08:38
Re: Problem with this announce dcmd - by Ash. - 01.08.2010, 08:42
Re: Problem with this announce dcmd - by Jay. - 01.08.2010, 08:47
Re: Problem with this announce dcmd - by Ash. - 01.08.2010, 08:49
Re: Problem with this announce dcmd - by WackoX - 01.08.2010, 10:02

Forum Jump:


Users browsing this thread: 1 Guest(s)