Need help with this
#7

Try This

Код:
public OnPlayerText(playerid, text[])
{
      if(text[0] == '#' ||text[0] == '@' && IsPlayerAdmin(playerid))
     {
	    new string[128]; GetPlayerName(playerid,string,sizeof(string));
	    format(string,sizeof(string),"<Admin Chat>: %s: %s",string,text[1]);
            for(new i = 0; i < MAX_PLAYERS; i++)
	    {
	         if(IsPlayerConnected(i) && IsPlayerAdmin(playerid)){
	         SendClientMessage(i, 0xFF00E6C8, string);
	         }
	    }
	    return 0;
     }
}
Reply


Messages In This Thread
Need help with this - by RiChArD_A - 19.01.2013, 19:50
Re: Need help with this - by CodyCummings - 19.01.2013, 19:53
Re: Need help with this - by DeathOnaStick - 19.01.2013, 19:53
Respuesta: Re: Need help with this - by RiChArD_A - 19.01.2013, 20:33
Re: Respuesta: Re: Need help with this - by DeathOnaStick - 19.01.2013, 20:39
Respuesta: Re: Respuesta: Re: Need help with this - by RiChArD_A - 20.01.2013, 03:02
Re: Need help with this - by Jewell - 20.01.2013, 03:55
Re: Need help with this - by Threshold - 20.01.2013, 04:50
Respuesta: Re: Need help with this - by RiChArD_A - 20.01.2013, 19:52

Forum Jump:


Users browsing this thread: 1 Guest(s)