AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   About【reset_user_wstats】 (https://forums.alliedmods.net/showthread.php?t=63793)

griefhy 11-30-2007 07:13

About【reset_user_wstats】
 
What's the use of this function ?
The ones that can reset the player " rank" ?
For example:

#include <amxmodx>
#include <amxmisc>
#include <csstats>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /reset","reset",0)
}
public reset(id)
{
reset_user_wstats(id)
}
but,It seems that there is not response! :shock:

Another question ,Reset the player's RANK data with PLUGINS, OK?
I do not want to use "csstats _ Reset" orders,I need, reset csstats.dat after changing the map, that is to say that map just begin when,What to do to realize this function? thanks,please give me some idea ......

RaYden 11-30-2007 16:09

Re: About【reset_user_wstats】
 
reset_user_wstats has a totally different function search for it here http://www.amxmodx.org/funcwiki.php
Reseting the rank may depend on what storing method you user and witch module u store the rank with

griefhy 11-30-2007 20:24

Re: About【reset_user_wstats】
 
Thank you for your replies, I see the function and introduce, what I used is AMXX basic memory way, do not seem that can operate " csstats.dat " directly in function Data inside!


All times are GMT -4. The time now is 11:13.

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