Admin Say
#2

Use strlen:
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0] == '#')
    {
        if(IsPlayerAdmin(playerid) && strlen(text) > 1)
        {
            new string[128];
            format(string, sizeof(string), ""SVETLOSMEDJA"[Admin]"BELA" %s: %s", imeigraca(playerid), text[1]);
            SendClientMessageToAll(-1, string);
            return 0;
        }
    }
    return 1;
}
Reply


Messages In This Thread
Admin Say - by MatriXgaMer - 13.01.2014, 20:42
Re: Admin Say - by IstuntmanI - 13.01.2014, 21:09
Re: Admin Say - by MatriXgaMer - 13.01.2014, 21:19

Forum Jump:


Users browsing this thread: 1 Guest(s)