#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128];
    if(text[0] == '#' && PlayerInfo[playerid][Admin] >= 1)
    {
        GetPlayerName(playerid, string, sizeof(string));
        format(string,sizeof(string), "Admin Chat: %s: %s", string, text[1]);
        MessageToAdmins(COLORE_VERDE,string);
    }
    return 0;
}

MessageToAdmins(colore, string[])
{
    for(new i = 0; i < GetPlayerPoolSize(); i++)
        if(PlayerInfo[i][Admin] >= 1)
            SendClientMessage(i, colore, string);
}
If it doesn't work, check if you're admin on server.
Reply


Messages In This Thread
Help - by BlackEvils - 06.05.2015, 18:50
Re: Help - by J4Rr3x - 06.05.2015, 19:13
Re: Help - by BlackEvils - 06.05.2015, 19:17
Re: Help - by J4Rr3x - 06.05.2015, 19:52
Re: Help - by BlackEvils - 07.05.2015, 12:27
Re: Help - by justice96 - 07.05.2015, 12:30
Re: Help - by BlackEvils - 07.05.2015, 12:32
AW: Help - by Mencent - 07.05.2015, 12:40
Re: Help - by BlackEvils - 07.05.2015, 18:49
Re: Help - by BlackEvils - 08.05.2015, 12:03

Forum Jump:


Users browsing this thread: 5 Guest(s)