When player login
#1

Hi,i need a little script with:
When the other player enter to server,admins recevied a mesages like this :
Player XXXXXX enter to server...

Thanks.Sorry for my bad english.
Reply
#2

Код:
public OnPlayerConnect(playerid)
	{
	new name[MAX_PLAYER_NAME],output[49]
	format(output,sizeof(output),"Player %s has joined the server!",name);
	GetPlayerName(playerid,name,sizeof(name));
	for(new i = 0;i<MAX_PLAYERS;i++)
		{
		if(IsPlayerAdmin(i) && IsPlayerConnected(i))
			{
			SendClientMessage(i,0xFFFFFFFF,output);
			}
		}
	return 1;
	}
Will send a message to RCon admins when a player joins the server.
Reply
#3

it is for all admins?
Reply
#4

Quote:
Originally Posted by rashier
Посмотреть сообщение
it is for all admins?
It is valid for RCon admins, admins who identified via /rcon login.
If you have a custom script running you need to pair it with the admin value and/or function.
Reply
#5

ok,thanks...i tested it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)