Author Topic: [REQ]Simple Script?  (Read 2212 times)

0 Members and 1 Guest are viewing this topic.

Offline daphenomena

  • Major
  • *
  • Posts: 72
  • -wP- DaPhenomena
    • FPSBanana
[REQ]Simple Script?
« on: January 21, 2009, 09:09:38 am »
I'm just wondering if someone would be so kind and make me a script that when server admin types "/commands" that it will show admin only commands like:

  • Default admin commands (kick, ban etc.)
  • Login System commands (create, login, logout etc.)
  • Other admin only commands (missile, invisible etc.)

And when person types "/rules" it will show him all the server rules.

And if it's possible that the list of the commands is really easy to edit for noob like me  ;)
That would be great!

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: [REQ]Simple Script?
« Reply #1 on: January 21, 2009, 10:55:29 am »
Code: [Select]
procedure OnPlayerSpeak(ID: Byte; Text: string);
begin
if Text = '/rules' then begin
WriteConsole(ID, '#*********** Server Rules***********#', $3CB371);   
WriteConsole(ID, 'NO verbal attacks, NO racism, NO whining', $F0E68C);   
WriteConsole(ID, 'NO spamming or repeating of same taunt', $3CB371);   
WriteConsole(ID, 'NO default taunts, NO capital lines only', $F0E68C);
        WriteConsole(ID, 'respect admins and their decisions', $F0E68C);
     end;

well im not sure if it will work. procedure might be wrong. basic rules added if u want u can easily change them just delete and add yours.

Im chill like that

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: [REQ]Simple Script?
« Reply #2 on: January 21, 2009, 10:56:57 am »
I'm just wondering if someone would be so kind and make me a script that when server admin types "/commands" that it will show admin only commands like:

  • Login System commands (create, login, logout etc.)

LogInSystem provides a help list with all commands by default. Just enter /help in game and
a list with all available commands and a short description to each will be displayed.
Soldat Global Account System: #soldat.sgas @ quakenet

Offline y0uRd34th

  • Camper
  • ***
  • Posts: 325
  • [i]Look Signature![/i]
Re: [REQ]Simple Script?
« Reply #3 on: January 21, 2009, 10:59:15 am »
@Bonecrusher: You need OnPlayerCommand :D

Offline daphenomena

  • Major
  • *
  • Posts: 72
  • -wP- DaPhenomena
    • FPSBanana
Re: [REQ]Simple Script?
« Reply #4 on: January 21, 2009, 11:05:01 am »
LogInSystem provides a help list with all commands by default. Just enter /help in game and
a list with all available commands and a short description to each will be displayed.

Yeah but I want a script that will show admin commands + login system and other commands as well

EDIT:

Thanks Bone for your script :D
(sorry that I forgot to thank you earlier :S)
« Last Edit: January 21, 2009, 11:08:51 am by daphenomena »

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: [REQ]Simple Script?
« Reply #5 on: January 21, 2009, 11:08:59 am »
LogInSystem provides a help list with all commands by default. Just enter /help in game and
a list with all available commands and a short description to each will be displayed.

Yeah but I want a script that will show admin commands + login system and other commands as well

Okay. So, please list all available commands with short description and I will create a nice little function to display them.
Soldat Global Account System: #soldat.sgas @ quakenet

Offline daphenomena

  • Major
  • *
  • Posts: 72
  • -wP- DaPhenomena
    • FPSBanana
Re: [REQ]Simple Script?
« Reply #6 on: January 21, 2009, 11:31:52 am »
All the commands (I think ???):

  • //Login System\\
  • /create - creates a new account
  • /login - login to your account
  • /logout - logout from your account
  • /stats - display your status
  • /delete delete your current account
  • /change <password> - change your password with new one
  • /top <number> - display top players
  • /reg-players - all registered players
  • /reg-players <players name> - display specified players status

  • //Various commands\\
  • /adminlog <password> - login as admin
  • /mss - launch an auto-aiming missile
  • /invis - become invisible
  • /invis <players name> - make someone invisible

And I changed my mind about command, should be "/adminhelp" and if it's possible that you make it so that I can add/change commands at will.

Thanks bunch! ;D

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: [REQ]Simple Script?
« Reply #7 on: January 21, 2009, 11:56:56 am »
@Bonecrusher: You need OnPlayerCommand :D

thought so ;p

Code: [Select]
procedure OnPlayerCommand(ID: Byte; Text: string);
begin
if Text = '/rules' then begin
WriteConsole(ID, '#*********** Server Rules***********#', $3CB371);   
WriteConsole(ID, 'NO verbal attacks, NO racism, NO whining', $F0E68C);   
WriteConsole(ID, 'NO spamming or repeating of same taunt', $3CB371);   
WriteConsole(ID, 'NO default taunts, NO capital lines only', $F0E68C);
        WriteConsole(ID, 'respect admins and their decisions', $F0E68C);
     end;

Im chill like that

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: [REQ]Simple Script?
« Reply #8 on: January 21, 2009, 11:59:21 am »
Done. Modify or add commands & rules by altering the specific text file.
The commands and rules list will be aligned by the script, so no scripting knowledge is required :)
By the way, I implemented my default LogInSystem commands list, I hope you don't mind.
Soldat Global Account System: #soldat.sgas @ quakenet

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: [REQ]Simple Script?
« Reply #9 on: January 21, 2009, 01:37:45 pm »
huh,i havent know that there's sth like 'create the box'. I will use it now :D thx Markus

Im chill like that

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: [REQ]Simple Script?
« Reply #10 on: January 21, 2009, 01:39:23 pm »
huh,i havent know that there's sth like 'create the box'. I will use it now :D thx Markus

Self-made procedure :) also used in LogInSystem.
Soldat Global Account System: #soldat.sgas @ quakenet

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: [REQ]Simple Script?
« Reply #11 on: January 21, 2009, 01:48:38 pm »
the bad thing is u cannot color each line with diffrent colour

Im chill like that

Offline daphenomena

  • Major
  • *
  • Posts: 72
  • -wP- DaPhenomena
    • FPSBanana
Re: [REQ]Simple Script?
« Reply #12 on: January 21, 2009, 02:33:49 pm »
Done. Modify or add commands & rules by altering the specific text file.
The commands and rules list will be aligned by the script, so no scripting knowledge is required :)
By the way, I implemented my default LogInSystem commands list, I hope you don't mind.

Thanks whole bunch, no I don't mind.
Can be "/rules" used by any player and if "/adminhelp" is the code to show commands?

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: [REQ]Simple Script?
« Reply #13 on: January 21, 2009, 04:01:18 pm »
the bad thing is u cannot color each line with diffrent colour

Yea and I know, that's quite annoying. I have to think about a possibility how to implement multicolored text.

Thanks whole bunch, no I don't mind.
Can be "/rules" used by any player and if "/adminhelp" is the code to show commands?

The command "/rules" can be used by every player and yes "/adminhelp" shows all commands.
You can modify these commands according to your wishes, as well as the color the text is colored by ;)
Soldat Global Account System: #soldat.sgas @ quakenet

Offline daphenomena

  • Major
  • *
  • Posts: 72
  • -wP- DaPhenomena
    • FPSBanana
Re: [REQ]Simple Script?
« Reply #14 on: January 22, 2009, 02:52:11 am »
Thanks for your help Markus Quär and Bonecrusher :D
Both of you are added to my Special Thanks list on my servers thread.