This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

get user info & save


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-18-2009 , 14:35   get user info & save
Reply With Quote #1

Is it poss to read user infos & save it anywhere with time?
for example read users cfg & save it in ram & after xx.xx delete it from ram or maybe a data file?!

i just thinked, slowhack on player, & to setting all commands back client_cmd & exec config.cfg..... how ever, this willbe show as a menu if player like to configure the cfg & player can say menu & set the settings back how they was.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Owyn
Veteran Member
Join Date: Nov 2007
Old 04-18-2009 , 16:20   Re: get user info & save
Reply With Quote #2

Quote:
Is it poss to read user infos & save it anywhere with time?
no
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-18-2009 , 16:24   Re: get user info & save
Reply With Quote #3

Quote:
Originally Posted by .Owyn. View Post
no
oki ty
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-19-2009 , 08:49   Re: get user info & save
Reply With Quote #4

so idont open a new thread.

how can i read user info & print it in motd?

like :
new lol = get_user_fps(id)

add(temp,2047,"<b>ur fps= %s ?????

its just a example, so dont worry about get_user_fps & ... i just wanna know how to %s in motd
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Owyn
Veteran Member
Join Date: Nov 2007
Old 04-19-2009 , 10:18   Re: get user info & save
Reply With Quote #5

http://www.amxmodx.org/funcwiki.php?...info&go=search

then use formatex() to add it into your motd then show_motd()
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-19-2009 , 10:22   Re: get user info & save
Reply With Quote #6

Quote:
Originally Posted by .Owyn. View Post
http://www.amxmodx.org/funcwiki.php?...info&go=search

then use formatex() to add it into your motd then show_motd()
ty, my problem isnt to getting user info, my problem is how to print it in motd

is this right so : ?

format("your rate: %d", user_rate, 6)

i think its wrong.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-19-2009 , 10:24   Re: get user info & save
Reply With Quote #7

You can save data with time using nVault. If you use nvault_set(), the entry is saved with a timestamp.

Edit: For MOTD

PHP Code:
static szMOTD[3500];
new 
iStatusLen;

iStatusLen formatexszMOTD 3499-iStatusLen"<html><body bgcolor=#000000><font size=3><pre>" );
iStatusLen += formatexszMOTD[iStatusLen] , 3499-iStatusLen ,"<font color=white><b>HELLO WORLD!</b></font>" );
iStatusLen += formatexszMOTD[iStatusLen] , 3499-iStatusLen ,"</pre></font></body></html>" );

show_motdid szMOTD ); 
__________________

Last edited by Bugsy; 04-19-2009 at 10:28.
Bugsy is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-19-2009 , 10:26   Re: get user info & save
Reply With Quote #8

Quote:
Originally Posted by Bugsy View Post
You can save data with time using nVault. If you use nvault_set(), the entry is saved with a timestamp.
ok ty, & how to delete it from file?
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-19-2009 , 10:31   Re: get user info & save
Reply With Quote #9

It depends. When will you be writing\saving the data (via concmd , connect, teamjoin, etc?) and when you will be deleting it (disconnect, after X minutes etc?)
__________________
Bugsy is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-19-2009 , 10:36   Re: get user info & save
Reply With Quote #10

Quote:
Originally Posted by Bugsy View Post
It depends. When will you be writing\saving the data (via concmd , connect, teamjoin, etc?) and when you will be deleting it (disconnect, after X minutes etc?)
hihi the problem is, i wanna to delete the line in the file. for example we have saved in user_configs.cfg :

player "name" config : cl_updaterate 13123142134214
player "name2" config : rate 234234
player "name3" config : gl_gof 1

now delete the line from file of player names "name2"

so after delete our file willbe shown :

player "name" config : cl_updaterate 13123142134214
player "name3" config : gl_gof 1

& yes

i think its imposs...i dont wanna to make for any player an extra config.

the datas willbe saved after player changes the commands. i have a menu to configure the commands. when player select this, the old commands should be saved & after xx if player wanna to get his original, the original commands should be readed from file, & add to client.

if player wanna to configure -> read client config -> save in file
{
after xxx delete
}
if player wanna set back
{
read original from user config on server. ( saved user config on server )
client_cmd ( all orignal commands)
delete config from server
}

i thinked just about : client_cmd(id, "exec config.cfg") but when player leave or close his game, the new commands willbe save & its bullshit how many times u write exec config.cfg ...
__________________

Last edited by One; 04-19-2009 at 10:42.
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
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 21:07.


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