Author Topic: NickName Registration  (Read 14533 times)

0 Members and 1 Guest are viewing this topic.

Offline spkka

  • Camper
  • ***
  • Posts: 469
NickName Registration
« on: December 28, 2007, 09:51:32 am »
Script Name:
NickName Registration

Script Description:
Script will store players Name/IP/Password/Kills/Deaths/Selfkills/Date last played.
Will only store stats of players that are logged in.
Players are able to change their Password and Nickname ingame.
!commands will display info ingame

Original Author:
Spkka
Makes use of Keydon's xSplit
Thanks to Toumaz and Sai`ke and some others i forgot!!!  :-* :-* :-*

Core Version:
2.6.3

Code:
See attachments

NOTE! The script needs  2 folders in your soldat server directory
Make sure those 2 folders got write acces!!!


c:/soldatserver/stats/nickreg

If there are any problems with the script drop a message or join #soldat.ttw on Quakenet.

Alter the code to your own likings to store more information or what-so-ever.
« Last Edit: December 28, 2007, 06:35:11 pm by spkka »

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: NickName Registration
« Reply #1 on: December 28, 2007, 11:20:58 am »
great! i search this script! :D GJ!

but i found 1 english error:

Code: [Select]
WriteConsole(ID,'Commands are: /login, /logout, /changepass, /changenick, /stats',GOOD);
WriteConsole(ID,'!login for example will display info how to login',GOOD);
end

if (copy(Text,1,6) = '!login') then
begin
WriteConsole(ID,'Type /login ''your password'' to login',GOOD);
end

In: WriteConsole(ID,'Typ /login ''your password'' to login',GOOD);
   end
Maybe Type? lol  ;)

Date Posted: December 28, 2007, 10:29:42 am
sorry for second post but i've got problem, when i type: /apple and killed enemy etc... I DONT GIFT stats on /stats.
i killed 3 enemy, my /stats:
Killed: 0
Deaths: 0
Selfkills: 0
WTF? please help me. :)
« Last Edit: December 28, 2007, 11:31:15 am by Szewczuq »



Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: NickName Registration
« Reply #2 on: December 28, 2007, 11:36:54 am »
Suggestions:
average Kills per minute/hour
average Kills per map
average kills on <mapname>
total kills on <mapname>

average Deaths per minute/hour
average deaths per map
average deaths on <mapname>
total deaths on <mapname>

average selfkills per minute/hour
average selfkills per map
average selfkills on <mapname>
total selfkills on <mapname>

(only for ctf, or inf, otherwise don't show the msg at all)
total caps
average caps per hour
average caps per map
average caps on <mapname>
total caps on <mapname>

setting for not including selfkills when survival mode is enabled and at the end of a round, when every1 selfkills themselves

<mapname> is current map being played, unless u want to make ur own command to get stats on a specific map..
per map is for every map played..

May require a dramatic change in format of your accounts files though.. :P
« Last Edit: December 28, 2007, 11:39:07 am by DorkeyDear »

Offline spkka

  • Camper
  • ***
  • Posts: 469
Re: NickName Registration
« Reply #3 on: December 28, 2007, 11:42:58 am »
/apply was a mistake it was still in there from the TTW script.
It will update when you leave the server or when the mapchanges now.
Please re-download the attachment

Date Posted: December 28, 2007, 11:40:22 am
Thanks for letting me know Szewczuq and thanks for those suggestions DorkeyDear!
Request stuff and i will write the Nickregistration script you need! (when i got the time)
Gimme a list of things you want to save within the player accounts.
I'll be working on this script tho, forgot to change minor things.

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: NickName Registration
« Reply #4 on: December 28, 2007, 11:57:10 am »
sorry but after up-date this script again is not working :(



Offline spkka

  • Camper
  • ***
  • Posts: 469
Re: NickName Registration
« Reply #5 on: December 28, 2007, 12:42:59 pm »
Fixed i forgot to add the filterfilename on updatenickname  [retard]

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: NickName Registration
« Reply #6 on: December 28, 2007, 12:57:13 pm »
eh! bad script, ~ SERVER SHUT DOWN ~ :(



Offline spkka

  • Camper
  • ***
  • Posts: 469
Re: NickName Registration
« Reply #7 on: December 28, 2007, 01:01:02 pm »
Fixed my bad...

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: NickName Registration
« Reply #8 on: December 28, 2007, 01:08:35 pm »
good :) now scirpt is working :) tlx



Offline spkka

  • Camper
  • ***
  • Posts: 469
Re: NickName Registration
« Reply #9 on: December 28, 2007, 06:20:22 pm »
Could someone else aswell test it on Debian?
It does not seem to work on that Distro..

Date Posted: December 28, 2007, 04:10:17 pm
Please download it again!
In the old version was a bug that causes to overwrite other player profiles!

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: NickName Registration
« Reply #10 on: December 28, 2007, 07:04:19 pm »
after 3h -> server shut down :(



Offline spkka

  • Camper
  • ***
  • Posts: 469
Re: NickName Registration
« Reply #11 on: December 28, 2007, 07:45:22 pm »
Next  time if you post please give me the error so i can see what happened.

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: NickName Registration
« Reply #12 on: December 29, 2007, 08:14:08 am »
ok look at forum -> Server Help and Topic: -> Server shut Down. And look at screens :(



Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: NickName Registration
« Reply #13 on: December 31, 2007, 11:00:34 am »
Zomg!

Since you're using xsplit anyway... Why don't you do stuff := xsplit(text) in OnPlayerCommand and such and then do a Case(stuff[1])? Instead of all those If's with Copy(text ... o.O

Offline PKS|Shooter

  • Soldier
  • **
  • Posts: 130
  • Dont fuck with us!
    • PKS - La Familia
Re: NickName Registration
« Reply #14 on: January 03, 2008, 05:56:16 pm »
well, Nice Gob ;D thx

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: NickName Registration
« Reply #15 on: January 11, 2008, 12:09:21 pm »
sorry of Offtopic but PKS|SHOOTER:
Your all post are:

GJ;D
GJ nice Script ^^
well, Nice Gob :D thx
nice, nie :D
thx :D



Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: NickName Registration
« Reply #16 on: January 18, 2008, 04:05:37 pm »
Whats up with "NickRegistration.pas~"?

Offline chrisgbk

  • Moderator
  • Veteran
  • *****
  • Posts: 1739
Re: NickName Registration
« Reply #17 on: January 19, 2008, 02:50:22 am »
Whats up with "NickRegistration.pas~"?

Probably a side effect of using an IDE to write it; Delphi IDE makes a backup of your old file whenever you save a file with that filename.

Offline Pawi

  • Major(1)
  • Posts: 16
    • BoG Clan Site
Re: NickName Registration
« Reply #18 on: February 22, 2008, 03:28:04 am »
Hello!

Could someone edit this script, to kick after 15 sec a unregistered player? And it would be great, if one IP can create only one profile.

I've tried it on my own, but i still got same error ;(

Code: [Select]
[*] Compiling default -> NickRegistration.pas...
[*] default -> [Error] (103:15): Unknown identifier 'ID'

Offline spkka

  • Camper
  • ***
  • Posts: 469
Re: NickName Registration
« Reply #19 on: February 24, 2008, 01:16:04 pm »
Zomg!

Since you're using xsplit anyway... Why don't you do stuff := xsplit(text) in OnPlayerCommand and such and then do a Case(stuff[1])? Instead of all those If's with Copy(text ... o.O

I kinda wrote it so people would understand what everything does. I agree its not written perfectly :P
---

Pawi thats not so hard, you mind trying it yourself? Im a bit busy with other things lately.
Just check on onjointeam if that player/ip got a profile or not. So something like if fileexist(nameprofile.txt) = false then kick player..
Do the same for the 1 profile per ip.
Its not that hard :D