I'm need chat admin.
#2

pawn Код:
CMD:a(playerid, params[])
{
    if(GetPVarInt < Level) return ErrorMessage(playerid);
    {
        new message[91];
        if(sscanf(params, "s[90]", message)) return SendClientMessage( playerid, white, "USAGE: /a [message]");
        if(strlen(params)>90) return SendClientMessage(playerid, red, "Invalid length. The length must be between 1 and 90 characters.");
        new string[128]=0;
        foreach (Player, i)
        {
            if(PlayerInfo[i][pAdmin] != 0) { format(string,sizeof(string),"[Admin Chat] {FFFFFF}%s{FF0000}:{FFFFFF} %s", GetPName(playerid), message); SendClientMessage(i, red, string); }
        }
    }
    return 1;
}
Reply


Messages In This Thread
I'm need chat admin. - by Userpwon - 14.09.2012, 19:05
Re: I'm need chat admin. - by Camacorn - 14.09.2012, 19:11
Re: I'm need chat admin. - by Drake1994 - 14.09.2012, 19:12
Re: I'm need chat admin. - by _Khaled_ - 14.09.2012, 19:17
Re: I'm need chat admin. - by Userpwon - 14.09.2012, 19:45
Re: I'm need chat admin. - by _Khaled_ - 14.09.2012, 19:52
Re: I'm need chat admin. - by Userpwon - 14.09.2012, 19:56
Re: I'm need chat admin. - by _Khaled_ - 14.09.2012, 19:59
Re: I'm need chat admin. - by Drake1994 - 14.09.2012, 20:04
Re: I'm need chat admin. - by Userpwon - 14.09.2012, 20:06

Forum Jump:


Users browsing this thread: 2 Guest(s)