GameTextForAll
#6

Quote:
Originally Posted by playbox12
Посмотреть сообщение
Sigh, please read a bit better, I am quite getting tired so I just fix your code


pawn Код:
command(ann, playerid, params[])
{
    new Announcement[128];
    if( sscanf( params, "s[128]", Announcement) )
    {
        if( Player[playerid][AdminLevel] >= 1 )
        {
            SendClientMessage( playerid, WHITE, "SYNTAX: /ann [message]" );
        }
    }
    else
    {
        if( Player[playerid][AdminLevel] >= 1)
        {
            if(strlen(Announcement) >= 1)
            {
                GameTextForAll(Announcement, 5000, 3 );
            }
            else
            {
                SendClientMessage( playerid, WHITE, "SYNTAX: /ann [message]" );
            }
        }
    }
    return 1;
}
YES!!
Hmm.. Thank you but still not working. if i type "/ann test" it just say "SYNTAX: /ann [message]" as a ClientMessage.
Reply


Messages In This Thread
GameTextForAll - by FrankC - 26.09.2010, 11:04
Re: GameTextForAll - by playbox12 - 26.09.2010, 11:08
Re: GameTextForAll - by [XST]O_x - 26.09.2010, 11:17
Re: GameTextForAll - by FrankC - 26.09.2010, 11:21
Re: GameTextForAll - by playbox12 - 26.09.2010, 11:42
Re: GameTextForAll - by FrankC - 26.09.2010, 13:37
Re: GameTextForAll - by FrankC - 26.09.2010, 13:46

Forum Jump:


Users browsing this thread: 1 Guest(s)