how can i make to show a message when player enter a area
#1

i wanna to make when the players get into a area, the screen should show up a messgae saids welcome to xxx
Reply
#2

This hasn't been tested yet, if you have problems please message me

Код:
#define SERVER_NAME "Server name Here"
new FirstReg[MAX_PLAYERS];

/*
	If you have a registration system,
	You will need to place FirstReg[playerid] = 1;
	When they register and spawn
*/

public OnPlayerUpdate(playerid)
{
	if(FirstReg[playerid] == 1 && IsPlayerInRangeOfPoint(playerid, 0.5, 0, 0, 0))
	{
		SendClientMessage(playerid, -1, "Welcome to "SERVER_NAME", We hope you enjoy your stay");
		FirstReg[playerid] = 0;
		return 1;
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)