PlayerrangePoint - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PlayerrangePoint (
/showthread.php?tid=111274)
PlayerrangePoint -
patchkinson - 30.11.2009
How to make like this:
If player is at -1123.0327,-1644.5114,76.4961 send ClientMEssage HELLO!
Re: PlayerrangePoint -
miokie - 30.11.2009
Make a timer checkign a players position and do:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,1,-1123.0327,-1644.5114,76.4961))
{
SendClientMessage(playerid,COLOR,"HELLO!");
}
So something like:
pawn Код:
forward PositionChecker(playerid);
pawn Код:
public PositionChecker(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,1,-1123.0327,-1644.5114,76.4961))
{
SendClientMessage(playerid,COLOR,"HELLO!");
}
}
pawn Код:
SetTimer("PositionChecker",1000,1);
Re: PlayerrangePoint -
patchkinson - 30.11.2009
many thanks