Rules 
26 comments Hello,
---------------
Informations
---------------
There are no bugs, its simple but I haven't seen it on any server so I decided to make it.
I have been working on it for around 5 hours
I'm still learning Lua thought.
Now you don't need to tell someone the rules, some times forget some part of them, now you can just say !rules your self and all players on the server will see it.
Also there is 'sample advertise' function in it saying:
To see rules of the server, say !rules
-------------
Installation
-------------
Go to Lua folder. Example:
C:\Counter-Strike 2D\sys\lua
then open server.lua and add:
dofile("sys/lua/rules.lua")
to the end of server.lua file, then copy the rules.lua to Lua folder, after that go to Counter-Strike 2D folder. Example:
C:\Counter-Strike 2D
and place the rules.txt there, then reedit it to show what ever you want when someone says !rules
-------
Other
-------
Do not edit/upload this script and/or claim it is yours!
If you use it in your script(s) give credit.
Thats all, hope you like it.
---------------
Informations
---------------





To see rules of the server, say !rules
-------------
Installation
-------------

C:\Counter-Strike 2D\sys\lua

dofile("sys/lua/rules.lua")

C:\Counter-Strike 2D

-------
Other
-------


Thats all, hope you like it.

Comments
26 commentsLog in!
You need to log in to be able to write comments!Log in
Hmm ? , this is useless , so easy to make and you can put the rules in the F1 menu. and you can open "sayfunctions" file in samples , he will learn you how to make it , this seems like copy paste .
@Triple H: You forgot to create a file called "rules.txt" in the lua folder where you added your rules!
Code:
1
[22:13:38] LUA ERROR: sys/lua/rules.lua:8: rules.txt: No such file or directory
Code:
1
file = assert(io.open("rules.txt"))
Maybe you have too much Lua scripts, so this one has conflict with them and wont display it... (Makes errors)
Try putting it in first line of server.lua (Thought other script that made conflict with this one wont work...)
Try putting it in first line of server.lua (Thought other script that made conflict with this one wont work...)
I don't know why but it isn't worked. I do everything as you told to. I see the massage "To see rules on this server, say !rules" but when I say "!rules" nothing happen. Is anybody know why ?
18.08.10 12:31:30 pm

Can some teach me how to make a script like this 1 but for other things i did the rules its easy but i cant make others dont know how


Don't know anything of lua T.T
I dont find any good tutorial on the internet and the one that comes with the game sucks
Can someone help me please?
I like this, its so useful, my fingers get hurt only by every minute having to ban anyone or kick... ad say the rules again, now its over
thanks
I dont find any good tutorial on the internet and the one that comes with the game sucks

Can someone help me please?
I like this, its so useful, my fingers get hurt only by every minute having to ban anyone or kick... ad say the rules again, now its over
