SendClientMessage Help
#2




Код:
stock SendStaffMessage(COLOR,Message[],lvl)
{
for(new i = 0; i < MAX_PLAYERS; i++)
	{
	  if(IsPlayerConnected(i))
	  {
	  	if (AccountInfo[i][aAdmin] >= adminlevel)
			{
				SendClientMessage(i, COLOR, text);
			}
		}
	}
	return 1;
}
usage:

SendStaffMessage(RED,"hello",1); //for level admin 1 or +
SendStaffMessage(RED,"hello",2); //for level admin 2 or +
SendStaffMessage(RED,"hello",3); //for level admin 3 or +
SendStaffMessage(RED,"hello",4); //for level admin 4 or +



Reply


Messages In This Thread
SendClientMessage Help - by Naruto4 - 17.12.2009, 11:50
Re: SendClientMessage Help - by cristab - 17.12.2009, 11:57
Re: SendClientMessage Help - by Naruto4 - 17.12.2009, 12:01
Re: SendClientMessage Help - by MenaceX^ - 17.12.2009, 12:01
Re: SendClientMessage Help - by Naruto4 - 17.12.2009, 12:05
Re: SendClientMessage Help - by cristab - 17.12.2009, 20:48

Forum Jump:


Users browsing this thread: 1 Guest(s)