Raised This Month: $ Target: $400
 0% 

Getting an ID


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tsilenzio
Junior Member
Join Date: Jul 2005
Old 06-28-2006 , 12:37   Getting an ID
Reply With Quote #1

Hello, I am VERY new to scripting. I was wondering how you obtain an authid, and if its a string like a steam ID like STEAM:0:0:123456 or if its a 3 digit number like 124 or just a single digit number. Also I was wondering if you do or dont include the # infront of it.

And if you dont keep the # infront of it, then how do u seperate it from it?. If you dont mind can you give me a small example? And explain a little bit. Sorry to ask for so much, I am just really confused on this part of scripting.

Thank you SO much in advance!

- tsilenzio

edit: Also if possible show how to detect if there is no player ID by the number the user provides?
tsilenzio is offline
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 06-28-2006 , 13:02   Re: Getting an ID
Reply With Quote #2

get_user_authid ( index, authid[], len )

Get more on that here...

http://www.amxmodx.org/funcwiki.php?go=func&id=166
Dizzy is offline
Send a message via AIM to Dizzy
tsilenzio
Junior Member
Join Date: Jul 2005
Old 06-28-2006 , 13:06   Re: Getting an ID
Reply With Quote #3

yea but does that give me their ID, or search for them by their id? I get confused very easily sorry
tsilenzio is offline
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 06-28-2006 , 13:12   Re: Getting an ID
Reply With Quote #4

When you do this command whoever triggers the function by what ever means the plugin uses such as a client command or console command it will take their AuthID, as in the person who triggered the event.

Last edited by Dizzy; 06-28-2006 at 13:15.
Dizzy is offline
Send a message via AIM to Dizzy
tsilenzio
Junior Member
Join Date: Jul 2005
Old 06-28-2006 , 15:26   Re: Getting an ID
Reply With Quote #5

Yea, but thats not what i want, I want it where if i type amx_blah #314 . how could i get it to search for this ID? And return a value for it?
tsilenzio is offline
BetaX
Member
Join Date: Nov 2005
Old 06-28-2006 , 18:31   Re: Getting an ID
Reply With Quote #6

You mean like if you wanted to vote someone off? :O I donno if anyone has ever wanted to do that... hm.
BetaX 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 08:02.


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