Author Topic: !Help !Rules !Admins !Admin  (Read 1077 times)

0 Members and 1 Guest are viewing this topic.

Offline D4NG3R NL

  • Soldier
  • **
  • Posts: 130
  • You got Rickroll'd
!Help !Rules !Admins !Admin
« on: May 08, 2009, 08:01:19 am »
Is there any script that ONLY has those?

!Help
Some text

!Rules
Shows the server rules

!Admins
Shows the current admins (all the admins, not the ones online)

!Admin
Calls in an admin
                  Forum Rules   -   Search

Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
Re: !Help !Rules !Admins !Admin
« Reply #1 on: May 08, 2009, 08:52:40 am »
Here's my rulesscript. It can also help you create !help and !admins (if you keep those in a .txt file), which shouldn't be too hard.
The !admin command is taken care of by your admin-program such as arsse.

http://forums.soldat.pl/index.php?topic=26768.0
Come join: EliteCTF
Listen to: My Music

Offline VinceBros

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 275
Re: !Help !Rules !Admins !Admin
« Reply #2 on: May 08, 2009, 04:35:51 pm »
If you want like a / for a command instead of ! for a text, tell me i can make you one. It's less annoying for people talking while playing.

Offline D4NG3R NL

  • Soldier
  • **
  • Posts: 130
  • You got Rickroll'd
Re: !Help !Rules !Admins !Admin
« Reply #3 on: May 08, 2009, 05:42:45 pm »
If you want like a / for a command instead of ! for a text, tell me i can make you one. It's less annoying for people talking while playing.

Ok, Can you link commands to .txt's to?

The stuff I need would be:

/Help
Help.txt

/Rules
Rules.txt

/Admins
Admins.txt

                  Forum Rules   -   Search

Offline VinceBros

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 275
Re: !Help !Rules !Admins !Admin
« Reply #4 on: May 08, 2009, 08:26:00 pm »
First ( Thank you JFK, i modified your script :) )
Here is your rules script :) ( It's with a .txt file )
It is Attached.
Want to make a help script ?
Check those following steps, if you have a problem just ask me !

1. Copy/Paste Rules.pas script in a new folder named Help ( In scripts folder as well )
2. Name the Pasted script Help.pas
3. Copy/Paste Includes.txt in Help Folder and open it
4. Modify the txt in Includes.txt for Help.pas
5. Copy/Paste Rules.Txt in Help Folder and open it.
6. Modify it's content for the help you want
7. Open the new help.pas script
8. Modify this part
Code: [Select]
RulesTXT = './scripts/Rules/Rules.txt';for
Code: [Select]
RulesTXT = './scripts/Help/Help.txt';9. Modify this part
Code: [Select]
  if text = '/rules' then begin
      for i:=0 to (GetArrayLength(Rules)-1) do WriteConsole(ID,+Rules[i],$00FF0000);
For
Code: [Select]
  if text = '/help' then begin
      for i:=0 to (GetArrayLength(Rules)-1) do WriteConsole(ID,+Help[i],$00FF0000);
10. You're done! You have your help script!
As you need to make a Help folder and an Includes.Txt
« Last Edit: May 09, 2009, 09:29:10 am by VinceBros »

Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
Re: !Help !Rules !Admins !Admin
« Reply #5 on: May 09, 2009, 10:51:40 am »
That would be the easiest way to do that, plus you can do it with !admins as well. But i'm pretty sure the last part of code should be :
Code: [Select]
  if text = '/help' then begin
      for i:=0 to (GetArrayLength(Rules)-1) do WriteConsole(ID,+Rules[i],$00FF0000);
Meaning, don't change Rules[ i] to Help[ i]. I don't see you make any changes to the variable, so it should still be 'Rules', right?

Come join: EliteCTF
Listen to: My Music

Offline VinceBros

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 275
Re: !Help !Rules !Admins !Admin
« Reply #6 on: May 09, 2009, 12:09:23 pm »
Yeah, i just let it to Rules, it doesn't affect the others scripts if they have the same .txt name

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: !Help !Rules !Admins !Admin
« Reply #7 on: May 09, 2009, 12:29:05 pm »
Here's an alternative to JFK's script I wrote some months ago...

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 :)
Soldat Global Account System: #soldat.sgas @ quakenet