Forum

> > CS2D > Scripts > Script Reset Rank
Forums overviewCS2D overview Scripts overviewLog in to reply

English Script Reset Rank

14 replies
To the start Previous 1 Next To the start

old Script Reset Rank

pbeloto
User Off Offline

Quote
hello guys, I wonder whether there could make a script
resetting rank but kind can not be so score but the whole rank.


thank you

old Re: Script Reset Rank

KimKat
GAME BANNED Off Offline

Quote
You can delete the two files in the stats directory in order to clear your stats totally. They are usually located in (<CS2D Dir>/sys/stats/).

The files go by the names:
• stats.dat
• userstats.dat

There's ways to manipulate scores dynamically aswell in-game via the CS2D commands cs2d cmd setscore and cs2d cmd setdeaths.
These commands will also affect your current stats after you've played.

Either way you could also edit the file at hand using user Lee's stats editor which was written in Python.

> thread cs2d Editing your Userstats (Rank/KPD/stuff)

old Re: Script Reset Rank

pbeloto
User Off Offline

Quote
I think you people are not understanding
I would like a script that does the following
when you write! reserank resetart will rank your whole like a Reset own score. are you understand me?

old Re: Script Reset Rank

Starkkz
Moderator Off Offline

Quote
@user pbeloto: Manipulating your rank through server sided Lua scripts is not possible as far as I know, you would have to edit the file and make the server load this file somehow.
edited 2×, last 22.05.13 08:19:09 pm

old Re: Script Reset Rank

limonata
User Off Offline

Quote
If you want to reset scores and deaths its possible with lua.

If you want to reset player ranks. Its impossible with lua.

old Re: Script Reset Rank

pbeloto
User Off Offline

Quote
@user Starkkz:

My I think it is possible but can not do so.
I was thinking not hesitate one script or @ @ give_admin remove_admin?? then it will be to do not give a script almost equal to that in the example.

File = os.remove ("sys / stats /" .. .. us. "txt", "a") but do like the player to enter! Resetrank will rank just reset it and not all.

I do not know if my order is right.

excuse my horrible english

Admin/mod comment

Why don't you learn some english? I can't understand a single thing. /Starkkz

old Re: Script Reset Rank

Infinite Rain
Reviewer Off Offline

Quote
@user limonata:
Yep, you can read it using some pre-made libraries (reading bytes and other shit from the file), to edit it.
Or you can delete userstats.dat using os.execute() function.
I'd maked it for you if I had time :P.

old Re: Script Reset Rank

Avo
User Off Offline

Quote
The easiest way here (possible with lua, nothing more) is to make own server-sided rank system. It doesn't seem to be that difficult, does it?

old Re: Script Reset Rank

limonata
User Off Offline

Quote
Thanks Crystal Rain. Also i searced it. I found some things. Yes its possible. And not so hard. Anyway if you will make one example for me i will be happy

old Re: Script Reset Rank

pbeloto
User Off Offline

Quote
Sorry sttarks but my natural language is Brazilian so do not know English, I use google translator to talk to you, try also to translate my Feedback



° Translator CLICK

old Re: Script Reset Rank

useigor
User Off Offline

Quote
user pbeloto has written
Sorry sttarks but my natural language is Brazilian so do not know English, I use google translator to talk to you, try also to translate my Feedback



° Translator CLICK

Do you know that user Starkkz live in Chile? BTW, please translate rule #4.1, i want to see your reaction.

Starkkz, not Sttarks. Use this code:
1
user:X
Where X is user USGN.

For example:
1
user:10464
user Starkkz = usеr:10464
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview