message to admins (fs help)
#3

I don't know what are you saying but maybe you mean a MessageToAdmins. Here it is:

Код:
forward MessageToAdmins(color,const string[]);
public MessageToAdmins(color,const string[])
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i) == 1) if (PlayerInfo[i][Level] >= 1) SendClientMessage(i, color, string);
	}
	return 1;
}
Here's an Example how to do it with string a message to admins..


Код:
new string[256];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pname));
format(string,sizeof(string), "Hello, i'm Very good player how are you ? I'm also good ! ~by %s.", pName );
MessageToAdmins(COLOR_ORANGE,string);
That's it !


Just a simple message.
Reply


Messages In This Thread
message to admins (fs help) - by Oshery - 21.10.2016, 14:56
Re: message to admins (fs help) - by ActionTanki91 - 21.10.2016, 15:02
Re: message to admins (fs help) - by Knowinne - 21.10.2016, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)