Forum

> > CS2D > Scripts > LeveL and EXP SCRIPT
Forums overviewCS2D overview Scripts overviewLog in to reply

English LeveL and EXP SCRIPT

22 replies
Page
To the start Previous 1 2 Next To the start

old Re: LeveL and EXP SCRIPT

Ajmin
User Off Offline

Quote
@user _Yank: Yup. It would work like a charm. I even thought about it lately. It would be a saviour despite its weak consistency only if theres a lot of non registered playing out there.

Well here's a Level Script which i used in one of ma old server.
Also i have combined @user _Yank 's idea of saving for non registered players. (Actually you have to thank @user Masea who actually strived for non registered users lol).


Make a folder named Level System in sys>lua
The Script >


With the rcon command cs2d cmd lua u could set level,add money and stuffs.
Eg :
1
/lua addmoney(1,10000000000000)
1
/lua setlvl(1,10)


I am using an Exist function to determine whether to load through usgn or an ip. Why? Why dont you if usgn>0 ??
Because If a non registered player suddenly gets the idea of registering in usgn All his datas saved in player(id,"ip") will be changed to his usgn. (aka he wont lose his lvls and exp which he gained through 0 usgn)

What if a player have "ip" saved stats and login through multi accounts and play?
DC has written
Mutli Accounts are forbidden


Enjoy.
edited 2×, last 10.07.17 10:54:12 am

old Re: LeveL and EXP SCRIPT

_Yank
User Off Offline

Quote
@user Ajmin: You still have to consider that, if the same IP is connected twice (or more) to the server, there will be problems.

My super hero reborn script, saves the players data on their IP (in case they are not logged) and as soon as they login, that data is disregarded and can only be transferred to their USGN manually.

A solution to handle this problem would be a key system that would save the unlogged players data under their IP + a randomly generated key that would be given to them. Then, to move that same data to an USGN, they would need to input that same key with a command or such.
Therefore, players would also need to input that key when joining the server and this is where the things start to get complicated. I believe the biggest reason most of the players do not register here is due to the fact that they are too lazy or unable to read what's proposed to them. Applying such a solution would require them to actually read and understand what's on the screen. Super intuitive custom UIs are normally the best way to deal with this but still...
edited 1×, last 10.07.17 03:36:04 pm

old Re: LeveL and EXP SCRIPT

Ajmin
User Off Offline

Quote
@user _Yank: Lets pray to god not to bring any players with same ip in his server and Manual actions never suit for those lazy asses obviously... Anyway it counts.
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview