#8

Hello!

Try this:
PHP код:
public OnPlayerText(playerid,text[])
{
    new 
string[145];
    if(
text[0] == '#' && PLayerInfo[playerid][Admin] >= 1)
    {
        
GetPlayerName(playerid,string,sizeof string);
        
format(string,sizeof string,"Admin Chat: %s: %s",string,text[1]);
        
MessageToAdmins(COLOR_VERDE,string);
    }
    return 
0;
}
stock MessageToAdmins(colore,const string[])
{
    for(new 
i;i<MAX_PLAYERS;i++)
    {
        if(!
IsPlayerConnected(i) || IsPlayerNPC(i) || PlayerInfo[i][Admin] < 1)continue;
        
SendClientMessage(i,colore,string);
    }
    return 
1;

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: 1 Guest(s)