Raised This Month: $ Target: $400
 0% 

Return user origin with native


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
padilha007
Senior Member
Join Date: Jul 2008
Old 05-04-2010 , 01:42   Return user origin with native
Reply With Quote #1

is possible?
__________________

padilha007 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-04-2010 , 01:43   Re: Return user origin with native
Reply With Quote #2

Pass the array in the native and use set_array[_f]().
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 05-04-2010 , 02:04   Re: Return user origin with native
Reply With Quote #3

could you show me an example?
__________________

padilha007 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-04-2010 , 02:12   Re: Return user origin with native
Reply With Quote #4

Code:
// core plugin public plugin_natives( ) {     register_native( "GetOrigin", "_GetOrigin" ); } public _GetOrigin( iPlugin, iParams ) {     new iPlayer = get_param( 1 );         if( is_user_alive( iPlayer ) )     {         new Float:vOrigin[ 3 ];         pev( iPlayer, pev_origin, vOrigin );                 set_array_f( 2, vOrigin, 3 );     } } // .inc file native GetOrigin( iPlayer, Float:vOrigin[ 3 ] ); // sub plugin #include <that_inc_file> someFunction( iPlayer ) {     new Float:vOrigin[ 3 ];     GetOrigin( iPlayer, vOrigin ); }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 05-04-2010 , 02:15   Re: Return user origin with native
Reply With Quote #5

Tnx dude, good night
__________________

padilha007 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 03:37.


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