how can i make to show a message when player enter a area - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how can i make to show a message when player enter a area (
/showthread.php?tid=448838)
how can i make to show a message when player enter a area -
Chrisli520 - 06.07.2013
i wanna to make when the players get into a area, the screen should show up a messgae saids welcome to xxx
Re: how can i make to show a message when player enter a area -
GODEX - 06.07.2013
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;
}