Is player under bridge or hiding behind wall - 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 player under bridge or hiding behind wall (
/showthread.php?tid=614596)
Is player under bridge or hiding behind wall -
MerryDeer - 10.08.2016
Hi,
IT's possible to check is player under bridge? or hiding near, behind wall?
Re: Is player under bridge or hiding behind wall -
AbyssMorgan - 10.08.2016
If you want to check if there is a wall between the players to be.
1. ColAndreas Plugin:
https://sampforum.blast.hk/showthread.php?tid=586068
2. 3DTryg:
https://sampforum.blast.hk/showthread.php?tid=591010
PHP код:
bool:IsBetweenPlayersIsWall(playerid,targetid);
bool:IsBetweenPlayerToPointIsWall(playerid,Float:x,Float:y,Float:z);
Re: Is player under bridge or hiding behind wall -
BiosMarcel - 10.08.2016
And you can tell the "isUnderBridge" by their position, just compare it to the bridges positions