Raised This Month: $ Target: $400
 0% 

get_user_userid help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 06-27-2012 , 18:43   Re: get_user_userid help
Reply With Quote #6

Quote:
Originally Posted by Aooka View Post
I do not understand what you are doing ^^

Why do you include amxmisc ? Because it's was here when you opened AmxStudioX ? lol

Code:
#include < amxmodx > public plugin_init( ) { &nbsp;&nbsp;&nbsp;&nbsp;register_plugin( "AMXX Authid" , "1.0" , "Aooka" ); &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;register_clcmd( "say /uid" , "ClientCommand_Userid" ); &nbsp;&nbsp;&nbsp;&nbsp;register_clcmd( "say_team /uid" , "ClientCommand_Userid" ); } public ClientCommand_Userid( const id ) { &nbsp;&nbsp;&nbsp;&nbsp;if( !is_user_connected( id ) ) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;return 1; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp; &nbsp;&nbsp;&nbsp;&nbsp;else &nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;new szAuthID[ 32 ]; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;get_user_authid( id , szAuthID , 31 ); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;client_print( id , print_chat , "Your steam ID is -> %s" , szAuthID ); &nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;return 0; }


Read this and if you don't understand tel me.
He wants to show userid, is not the same as steamid.
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
 



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 06:12.


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