Forum

> > CS2D > Scripts > Script Reset Rank
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Script Reset Rank

14 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Script Reset Rank

pbeloto
User Off Offline

Zitieren
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

alt Re: Script Reset Rank

KimKat
GAME BANNED Off Offline

Zitieren
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)

alt Re: Script Reset Rank

pbeloto
User Off Offline

Zitieren
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?

alt Re: Script Reset Rank

Starkkz
Moderator Off Offline

Zitieren
@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.
2× editiert, zuletzt 22.05.13 20:19:09

alt Re: Script Reset Rank

limonata
User Off Offline

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

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

alt Re: Script Reset Rank

pbeloto
User Off Offline

Zitieren
@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 Kommentar

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

alt Re: Script Reset Rank

Infinite Rain
Reviewer Off Offline

Zitieren
@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.

alt Re: Script Reset Rank

Avo
User Off Offline

Zitieren
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?

alt Re: Script Reset Rank

limonata
User Off Offline

Zitieren
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

alt Re: Script Reset Rank

useigor
User Off Offline

Zitieren
user pbeloto hat geschrieben
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht