GameTextForAll - announcing
#7

Quote:
Originally Posted by ssǝן‾ʎ
Err, what happens if you type "/an" (nothing after)?
It'll just send " ". Though, if it bothers you that much...

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if((strcmp(cmdtext, "/an", true, 3) == 0) && (strlen(cmdtext) => 5) && IsPlayerAdmin(playerid))
    {
        strdel(cmdtext, 0, 4);
        GameTextForAll(cmdtext, 2000, 3);
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
GameTextForAll - announcing - by StrickenKid - 01.02.2009, 21:03
Re: GameTextForAll - announcing - by Mikep - 01.02.2009, 21:07
Re: GameTextForAll - announcing - by StrickenKid - 01.02.2009, 21:10
Re: GameTextForAll - announcing - by Ghett0 - 01.02.2009, 21:11
Re: GameTextForAll - announcing - by Mikep - 01.02.2009, 21:11
Re: GameTextForAll - announcing - by StrickenKid - 01.02.2009, 21:15
Re: GameTextForAll - announcing - by Ghett0 - 01.02.2009, 21:30
Re: GameTextForAll - announcing - by Monti|spearrow - 01.02.2009, 22:14
Re: GameTextForAll - announcing - by Ghett0 - 01.02.2009, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)