Raised This Month: $ Target: $400
 0% 

Return user origin with native


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
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 #1

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
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