AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   coordinates (https://forums.alliedmods.net/showthread.php?t=6829)

TotalNoobScripter 10-15-2004 22:34

coordinates
 
how would I get the coordinates of a player? because I cant edit a map im using it for, i need to make it use player coordinates. If a player is at the coordinates, a say cmd will be functional to them. Also, how would i get if a player is WITHIN a area of the map, as in would i have to get the coordinates for 4 corners of an imaginary square, and then make a plugin that says if blah is in blah?

twistedeuphoria 10-16-2004 01:08

http://www.amxmodx.org/funcwiki.php?go=func&id=162

TotalNoobScripter 10-16-2004 14:10

ok
 
ok now i got that, hwo do i make it so that it will know if a player is within a 'field' of coordinates?

twistedeuphoria 10-16-2004 17:34

something like
Code:
if(25 > origin[0] > 50) dostuff
would probably work, i dont know if theres a better way


All times are GMT -4. The time now is 17:24.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.