Raised This Month: $12 Target: $400
 3% 

[Native] GetUserExtraInfo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-07-2010 , 23:09   [Native] GetUserExtraInfo
Reply With Quote #1

GetUserExtraInfo

This adds the functionality of one extra piece of data in user.ini for each user listed. You are able to add a 5th argument for miscellaneous data. Based on my work in this thread and inspired to completion by this request.

The new format for an entry is users.ini is as follows:

Code:
<name|ip|steamid> <password> <access flags> <account flags> [extra info]

Native:

PHP Code:
/*
    @param UserKey        String: <name|ip|steamid>
    @param Output        String to output "ExtraInfo" (The 5th argument of a user entry in users.ini)
    @param len            Max length of output string
    
    @return                True if found any ExtraInfo.

*/
native bool:GetUserExtraInfo(const UserKey[], Output[], len
Comments are welcome.
Attached Files
File Type: sma Get Plugin or Get Source (native_getuserextrainfo.sma - 1333 views - 1.6 KB)
File Type: inc getuserextrainfo.inc (737 Bytes, 437 views)
__________________

Last edited by fysiks; 12-08-2010 at 16:42. Reason: typo
fysiks is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-08-2010 , 01:50   Re: [Native] GetUserExtraInfo
Reply With Quote #2

Quote:
Originally Posted by fysiks View Post
Comment are welcome.
You could use orpheu and add support for amx_reloadadmins command
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 05-28-2015 , 15:45   Re: [Native] GetUserExtraInfo
Reply With Quote #3

Can you make an example plugin please ?
BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-28-2015 , 20:34   Re: [Native] GetUserExtraInfo
Reply With Quote #4

Quote:
Originally Posted by BaD CopY View Post
Can you make an example plugin please ?
Perhaps you should read my original post again. I.e. there exists an example. It's not a plugin technically but that's irrelevant.
__________________

Last edited by fysiks; 05-28-2015 at 20:37.
fysiks is offline
pupdebox
Senior Member
Join Date: Feb 2016
Location: Wakanda
Old 08-31-2016 , 09:14   Re: [Native] GetUserExtraInfo
Reply With Quote #5

Thanks for sharing. I was looking for something like this.
pupdebox is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 09-01-2016 , 03:14   Re: [Native] GetUserExtraInfo
Reply With Quote #6

For a long time, people posts only random replies.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
pupdebox
Senior Member
Join Date: Feb 2016
Location: Wakanda
Old 09-01-2016 , 10:53   Re: [Native] GetUserExtraInfo
Reply With Quote #7

Quote:
Originally Posted by Craxor View Post
For a long time, people posts only random replies.
If something helps me improve my skillz, i would be most grateful. I show my respect by posting "random replies".

I will be the best scripter in the future. Deal with it kid.
pupdebox is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 09-02-2016 , 02:13   Re: [Native] GetUserExtraInfo
Reply With Quote #8

Quote:
Originally Posted by pupdebox View Post
If something helps me improve my skillz, i would be most grateful. I show my respect by posting "random replies".

I will be the best scripter in the future. Deal with it kid.
Ouhf. you're so cute.

If you want to improve your skill(s) i will tell you the secret: 'Think' before 'say/posting/code' something.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
Reply


Thread Tools
Display Modes

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


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