Need advice
#5

A better method than commands,

OnPlayerText
pawn Код:
if(text[0] == '#' && Pinfo[playerid][Admin] >= 1)
{
    new string[128]; GetPlayerName(playerid,string,sizeof(string));
    format(string,sizeof(string),"Admin Chat: %s: %s",string,text[1]);
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(Pinfo[i][Admin] >= 1)
        {
            SendClientMessage(i, ADMIN_COLOR, string);
        }
    }
    return 0;
}
Anything after '#' will be sent to admins
Reply


Messages In This Thread
Need advice - by Voldemort - 22.09.2010, 08:02
Re: Need advice - by iggy1 - 22.09.2010, 08:26
Re: Need advice - by Retardedwolf - 22.09.2010, 08:31
Re: Need advice - by Kyosaur - 22.09.2010, 08:32
Re: Need advice - by iggy1 - 22.09.2010, 08:36
Re: Need advice - by Voldemort - 22.09.2010, 08:37

Forum Jump:


Users browsing this thread: 1 Guest(s)