Raised This Month: $ Target: $400
 0% 

Get and register player info.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GoGoGo
Senior Member
Join Date: Apr 2008
Old 01-04-2009 , 06:05   Get and register player info.
Reply With Quote #1

How to register and read player info?
I mean sometling like this
PHP Code:
setinfo "password" "lol" 
. When player connect first time to serwer he will get his own password and when he enter second time the plugin will recognise him?
__________________
Aaaaaa!
GoGoGo is offline
zwfgdlc
Senior Member
Join Date: May 2006
Old 01-04-2009 , 06:13   Re: Get and register player info.
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?...info&go=search
zwfgdlc is offline
GoGoGo
Senior Member
Join Date: Apr 2008
Old 01-04-2009 , 06:33   Re: Get and register player info.
Reply With Quote #3

Ok, but How can I save it?
__________________
Aaaaaa!
GoGoGo is offline
zwfgdlc
Senior Member
Join Date: May 2006
Old 01-04-2009 , 06:42   Re: Get and register player info.
Reply With Quote #4

PHP Code:
new name[32],password[32];
get_user_name(id,name,31);
get_user_info(id,"password",password,31);
server_print("player: % is %s",name,password); 
zwfgdlc is offline
GoGoGo
Senior Member
Join Date: Apr 2008
Old 01-04-2009 , 07:59   Re: Get and register player info.
Reply With Quote #5

No I mean how to save in config.cfg setinfo "password" "lol" .

Quote:
writecfg config.cfg
?
__________________
Aaaaaa!
GoGoGo is offline
zwfgdlc
Senior Member
Join Date: May 2006
Old 01-04-2009 , 08:07   Re: Get and register player info.
Reply With Quote #6

PHP Code:
client_cmd(id,"setinfo password lol "); 
or execute "setinfo password lol" command on client console.
zwfgdlc is offline
GoGoGo
Senior Member
Join Date: Apr 2008
Old 01-04-2009 , 09:40   Re: Get and register player info.
Reply With Quote #7

Yes, but it won't save it.
__________________
Aaaaaa!
GoGoGo is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-04-2009 , 12:27   Re: Get and register player info.
Reply With Quote #8

If it doesn't save, then the player has a read-only config.cfg
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
GoGoGo
Senior Member
Join Date: Apr 2008
Old 01-04-2009 , 12:51   Re: Get and register player info.
Reply With Quote #9

Is it possible to make another config in player's computer? If it is how to make it?
__________________
Aaaaaa!
GoGoGo is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-04-2009 , 12:59   Re: Get and register player info.
Reply With Quote #10

Quote:
Originally Posted by GoGoGo View Post
Is it possible to make another config in player's computer? If it is how to make it?
Thankfully not possible.
__________________

Community / No support through PM
danielkza 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 09:18.


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