Raised This Month: $ Target: $400
 0% 

rules plugin help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
asdfdsdf
AlliedModders Donor
Join Date: Aug 2010
Location: Belgium
Old 05-25-2011 , 15:04   rules plugin help
Reply With Quote #1

i neeed a rules plugin i found alot of it but they dont work at my server if i type /rules nothing comes in the screen i dont now nothing about how to set up my rules in rules.txt with html can someone pls help me how i add those rules this is a first plugin i tried but how i add rules in rules.txt
http://forums.alliedmods.net/showthr...light=%2Frules

http://forums.alliedmods.net/showthr...light=%2Frules
ty
asdfdsdf is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-25-2011 , 15:28   Re: rules plugin help
Reply With Quote #2

Just open the .txt file and write your rules.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
asdfdsdf
AlliedModders Donor
Join Date: Aug 2010
Location: Belgium
Old 05-25-2011 , 15:54   Re: rules plugin help
Reply With Quote #3

yyes i did but it stands in some plugins rules.txt like this one this is my rules.txt

<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Server Rules</title></head><body bgcolor="FFFFFF">
<b>Complete rules on the website !<br>
say /showrules /rules or /serverrules for info/rules while playing<br><br>
Have Fun, Play Fair, Be Nice Or We'll Kick Yer Azz - You Are Being Watched
<br>
</b>
</body>
- NO flaming, harassing, spamming or advertising
- NO cheating/hacking
- NO blocking

Types of blocking :
- Blocking as a human to prevent people to get in a certain area. [will result in a slay and/or kick]
- Blocking as a zombie to prevent other zombies to get out. [will result in a slay and/or kick]
- Blocking as a zombie to save a Human friend. [will result in a kick immidiatly]
- Blocking as a human to prevent other humans to get out. [will result in a slay and/or kick]
- Blocking a door to prevent zombies to get in. [will result in a slay and/or kick]
- Breaking boxes at the start of the round before zombie spawns. [will result in a slay and/or kick]
2. No harrasing. [For regulars and also members]
No harrasing. [For regulars and also members]
- Flaming. (Fuck you, asshole, retarted, Fucktard Etc) [will result in a kick and/or ban]
- Racism. (Offending people by their looks,religion and origin) [will result in a temporarly ban]
- Offensive sprays. E.G Nazi sprays and other offensive sprays. [will result in a kick and/or ban]

3. No spam.
Types of spam :
- Spamming the chat whit nonsence is not allowed. [will result in a kick]
- Micspam. [will result in a kick]
- Advertising for other servers. [will result in a kick]
4. No abuse of the VIP menu.
Types of abuse : The first incident is a warning! Next time we will take higher measures!
- Kicking/Banning people for personal reasons is not allowed. [will result in a removal of your VIP]
- Full kit as a zombie is not allowed. (For a infection bomb) [will result in a removal of your VIP]

Pretending to be an Admin/Member and/or Regular.
- Tag faking is forbidden. E.G Putting |ThC| infront nick. [will result in a permanent ban]
- Threaten people whit slays/kicks/bans is forbidden. [will result in a permanent ban]
- Taking a well knowned players nick and behaving bad whit it. [will result in a kick and/or ban]
</body>
</html>
but nothing appears in my server of these words ty for helping if you know where i put the rules between <body> and <html> and <b> wtf are those things and rules.txt have to be in cstrike folder yes
asdfdsdf is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-25-2011 , 18:05   Re: rules plugin help
Reply With Quote #4

Place your rule between the body tags.
Ex. <body> your rules here</body> or <b>your rules here</b>.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
slice231`SD
Senior Member
Join Date: Mar 2009
Location: Location: Location:
Old 05-25-2011 , 22:13   Re: rules plugin help
Reply With Quote #5

Use GHW_Chronic's Custom Say Commands instead. It's longer to install and to implement but you can make anything from /help to your help.txt to /rules to your rules.txt
__________________

slice231`SD is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-25-2011 , 22:33   Re: rules plugin help
Reply With Quote #6

1. Your HTML is way too long. A standard MOTD can only show 1600 characters and oyour HTML is 2300 characters.
2.
PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("rules","1.0","Micke1101")

    
register_concmd("say /rules","showrules")
}
public 
showrules(id)
{
    
show_motd(id"rules.txt")

__________________
fysiks is offline
asdfdsdf
AlliedModders Donor
Join Date: Aug 2010
Location: Belgium
Old 05-26-2011 , 12:06   Re: rules plugin help
Reply With Quote #7

do i have to compile that or what to do with that code is that for more characters in rules.txt because i saw servers with that many characters in there rules if i type /rules thx for helping me
asdfdsdf is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-26-2011 , 12:14   Re: rules plugin help
Reply With Quote #8

Yes compile it and add it like any other plugin, It will show your rules.txt.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-26-2011 , 14:25   Re: rules plugin help
Reply With Quote #9

Quote:
Originally Posted by asdfdsdf View Post
do i have to compile that or what to do with that code is that for more characters in rules.txt because i saw servers with that many characters in there rules if i type /rules thx for helping me
You can compile it here.

No, it does not make it able to use more characters. If you want more characters then you need to host the file as a .html file on a public webserver. If you are able to do that then the code can be changed to make it work that way.
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode