Raised This Month: $ Target: $400
 0% 

Origins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nick
Senior Member
Join Date: Apr 2004
Location: Canada, Alberta, Cal
Old 07-10-2004 , 03:11   Origins
Reply With Quote #1

How would you get the origins of all players in the server?
__________________
Nick is offline
Send a message via MSN to Nick
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-10-2004 , 09:55  
Reply With Quote #2

I found this in Engine inlude:
Code:
native entity_set_origin(iIndex, Float:fNewOrigin[3]);

This in amxmodx include:
Code:
/* Gets origin from player. * Modes: * 0 - current position. * 1 - position from eyes (weapon aiming). * 2 - end position from player position. * 3 - end position from eyes (hit point for weapon). * 4 - position of last bullet hit (only CS). */ native get_user_origin(index, origin[3], mode = 0);
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-10-2004 , 10:25  
Reply With Quote #3

also found this in xtrafun
Code:
/* Gets the origin of an entity */ stock get_entity_origin(index, origin[3]) {     new Float:vector[3]     entity_get_vector(index, EV_VEC_origin, vector)     FVecIVec(vector, origin) } /* Sets the origin of an entity */ stock set_entity_origin(index, origin[3]) {     new Float:vector[3]     IVecFVec(originvector)     entity_set_vector(index, EV_VEC_origin, vector)
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:49.


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