AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get and register player info. (https://forums.alliedmods.net/showthread.php?t=83094)

GoGoGo 01-04-2009 06:05

Get and register player info.
 
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?

zwfgdlc 01-04-2009 06:13

Re: Get and register player info.
 
http://www.amxmodx.org/funcwiki.php?...info&go=search

GoGoGo 01-04-2009 06:33

Re: Get and register player info.
 
Ok, but How can I save it?

zwfgdlc 01-04-2009 06:42

Re: Get and register player info.
 
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); 


GoGoGo 01-04-2009 07:59

Re: Get and register player info.
 
No I mean how to save in config.cfg setinfo "password" "lol" .

Quote:

writecfg config.cfg
?

zwfgdlc 01-04-2009 08:07

Re: Get and register player info.
 
PHP Code:

client_cmd(id,"setinfo password lol "); 

or execute "setinfo password lol" command on client console.

GoGoGo 01-04-2009 09:40

Re: Get and register player info.
 
Yes, but it won't save it.

Exolent[jNr] 01-04-2009 12:27

Re: Get and register player info.
 
If it doesn't save, then the player has a read-only config.cfg

GoGoGo 01-04-2009 12:51

Re: Get and register player info.
 
Is it possible to make another config in player's computer? If it is how to make it?

danielkza 01-04-2009 12:59

Re: Get and register player info.
 
Quote:

Originally Posted by GoGoGo (Post 738287)
Is it possible to make another config in player's computer? If it is how to make it?

Thankfully not possible.


All times are GMT -4. The time now is 09:18.

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