Raised This Month: $ Target: $400
 0% 

how to teleport player to my chosen Cordinates?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-30-2010 , 13:23   Re: how to teleport player to my chosen Cordinates?
Reply With Quote #1

Code:
new Float:coords[3] set_pev( playerindex, pev_origin, coords )
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-30-2010 , 13:26   Re: how to teleport player to my chosen Cordinates?
Reply With Quote #2

Quote:
Originally Posted by wrecked_ View Post
Code:
new Float:coords[3] set_pev( playerindex, pev_origin, coords )
You should not do it this way, it is better to do:
Code:
//engine
entity_set_origin(iIndex, const Float:fNewOrigin[3]);

//fakemeta_util
fm_entity_set_origin(index, const Float:origin[3])
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-30-2010 , 13:29   Re: how to teleport player to my chosen Cordinates?
Reply With Quote #3

Quote:
Originally Posted by Emp` View Post
You should not do it this way, it is better to do:
Code:
//engine
entity_set_origin(iIndex, const Float:fNewOrigin[3]);

//fakemeta_util
fm_entity_set_origin(index, const Float:origin[3])
Could you explain your reasoning?
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-30-2010 , 13:39   Re: how to teleport player to my chosen Cordinates?
Reply With Quote #4

Quote:
Originally Posted by wrecked_ View Post
Could you explain your reasoning?
fixes mins/maxs with new origin
__________________
xPaw is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-30-2010 , 21:33   Re: how to teleport player to my chosen Cordinates?
Reply With Quote #5

Quote:
Originally Posted by Brreaker View Post
set_user_origin(id, origin)... ?
That uses integer values, but that is another method.

Quote:
Originally Posted by xPaw View Post
fixes mins/maxs with new origin
Oh, alright. Thanks.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
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 05:25.


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