Is it possible? - 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: Is it possible? (
/showthread.php?tid=575338)
Is it possible? -
baba1234 - 25.05.2015
I want to make ifplayerisinrangeofpoint pickup that he get some textdraw showing... I have made all txds but i dont know where to put this..
Код:
if(IsPlayerInRangeOfPoint(playerid, 1.0, 2249.6045, -2236.4414, 13.5469))
{
TextDrawShowForPlayer(playerid, PosaoTxd);
TextDrawShowForPlayer(playerid, PosaoBox1);
TextDrawShowForPlayer(playerid, KamijondzijeTxd);
TextDrawShowForPlayer(playerid, UzmiPosaoTxd);
TextDrawShowForPlayer(playerid, PosaoBox2);
TextDrawShowForPlayer(playerid, PosaoBox3);
TextDrawShowForPlayer(playerid, PosaoBox4);
TextDrawShowForPlayer(playerid, PosaoBox5);
}else
{
TextDrawHideForPlayer(playerid, PosaoTxd);
TextDrawHideForPlayer(playerid, PosaoBox1);
TextDrawHideForPlayer(playerid, KamijondzijeTxd);
TextDrawHideForPlayer(playerid, UzmiPosaoTxd);
TextDrawHideForPlayer(playerid, PosaoBox2);
TextDrawHideForPlayer(playerid, PosaoBox3);
TextDrawHideForPlayer(playerid, PosaoBox4);
TextDrawHideForPlayer(playerid, PosaoBox5);
}
I need this to show when player is near how can I do that?I cannot put it onplayerpickuppickup it will be shown all the time soo..
Re: Is it possible? -
PepsiCola23 - 25.05.2015
Use proxdetector
Re: Is it possible? -
J0sh... - 25.05.2015
Quote:
Originally Posted by PepsiCola23
Use proxdetector
|
Did you really say that?
Probably - OnPlayerUpdate.
Re: Is it possible? -
Konstantinos - 25.05.2015
Most of the people tend to forget about dynamic areas! When a player enters that dynamic area, show the textdraws and when the player leaves that dynamic area, hide the textdraws.
CreateDynamicSphere is ideal.