Squirrel/Server/Functions/Utils/InPoly
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with "{{Squirrel/Title|InPoly}} ... == Syntax == <code>InPoly(player.Pos.x , player.Pos.y , North West(NW) x , North West(NW) y , North East(NE) x , North East(NE) y , South East(...") |
Latest revision as of 22:13, 26 November 2015
...
[edit] Syntax
InPoly(player.Pos.x , player.Pos.y , North West(NW) x , North West(NW) y , North East(NE) x , North East(NE) y , South East(SE) x , South East(SE) y , South West(SW) x , South West(SW) y)
[edit] Example
if (!InPoly(player.Pos.x,player.Pos.y,339.7,-711.8,353.2,-711.8,353.2,-720.7,339.7,-720.7)) MessagePlayer("* You must be in Ammu-Nation [Staunton Island]!",player);
[edit] Notes
The function MessagePlayer were used in in this example. More info about them in corresponding pages.