AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   [Native] GetUserExtraInfo (https://forums.alliedmods.net/showthread.php?t=144788)

fysiks 12-07-2010 23:09

[Native] GetUserExtraInfo
 
4 Attachment(s)
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.

ConnorMcLeod 12-08-2010 01:50

Re: [Native] GetUserExtraInfo
 
Quote:

Originally Posted by fysiks (Post 1365700)
Comment are welcome.

You could use orpheu and add support for amx_reloadadmins command :mrgreen:

BaD CopY 05-28-2015 15:45

Re: [Native] GetUserExtraInfo
 
Can you make an example plugin please ?

fysiks 05-28-2015 20:34

Re: [Native] GetUserExtraInfo
 
Quote:

Originally Posted by BaD CopY (Post 2302162)
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.

pupdebox 08-31-2016 09:14

Re: [Native] GetUserExtraInfo
 
Thanks for sharing. I was looking for something like this.

Craxor 09-01-2016 03:14

Re: [Native] GetUserExtraInfo
 
For a long time, people posts only random replies.

pupdebox 09-01-2016 10:53

Re: [Native] GetUserExtraInfo
 
Quote:

Originally Posted by Craxor (Post 2450057)
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.

Craxor 09-02-2016 02:13

Re: [Native] GetUserExtraInfo
 
Quote:

Originally Posted by pupdebox (Post 2450143)
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.


All times are GMT -4. The time now is 07:00.

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