Raised This Month: $12 Target: $400
 3% 

Jail Break Rules


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
ServO
Senior Member
Join Date: Nov 2009
Location: Are you asking me out?
Old 03-28-2010 , 07:27   Jail Break Rules
Reply With Quote #1

Jail Break Rules

~ Discription ~

This Is my first plugin. That I've ever made.

I made this plugin, since someone was asking me, if I could make a place where they could read jbrules. And some servers is Missing rules that people can read.

As I said, this is my first plugin. And If I did something wrong. Please correct it. So I can learn it to next time.

~ How To ~

Get the .amxx file. Get the .amxx file to Addons/amxmodx/plugin. Add it There. Then go to addons/amxmodx/config and find: plugins.ini Add this in plugins.ini "jail_break_rules.amxx"
Then go to czero/cstrike folder. And find Motd.txt. Add What you wan't in there. Then restart your server and go in the server. Type: !jbrules or /jbrules. And check about it works!

~ ChangeLog ~

1.0: Release

1.1: Added Hud_Message (Not Checked About It Works...)

1.2: Fixed Some Issues.

1.3: Fixed Some Other Issues...



This Is My First Plugin, That I've Ever Coded!


Attached Files
File Type: sma Get Plugin or Get Source (Jail_Break_Rules.sma - 279 views - 932 Bytes)
__________________
Zombie Dominance

To Do:
- Learn AMXx Script...

Last edited by ServO; 03-28-2010 at 12:39.
ServO is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 03-28-2010 , 07:46   Re: Jail Break Rules
Reply With Quote #2

Few things you did wrong:

- You forgot a ")" so the plugin doesn't compile at all.
- You never call the function "hud_message."
- You didn't indent the code in "hud_message."
- You're not using Fakemeta so no need to include it.


Plugins like these already exist, also.
Just look at this plugin. It allows you to add any MOTD you wish, and that way it's much better. This could be good if you only needed one, though.

Also, since you name the file motd.txt and it's in the mod folder it would be the same as the motd you get when you enter the server. Many servers have different motd's here, such as a community banner or so.

That's about all I have to say.
__________________

Last edited by DarkGod; 03-28-2010 at 07:49.
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
ServO
Senior Member
Join Date: Nov 2009
Location: Are you asking me out?
Old 03-28-2010 , 07:58   Re: Jail Break Rules
Reply With Quote #3

Ok xD

Thanks. I've never seen that plugin.

It's my first plugin.

So thanks telling me whats wrong..
__________________
Zombie Dominance

To Do:
- Learn AMXx Script...
ServO is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-28-2010 , 14:13   Re: Jail Break Rules
Reply With Quote #4

Um.... Redundant, Unapproved


For starters, plugin doesn't even compile, did you test it?
kmodmsg is never called.
#include <cstrike> is never used
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ServO
Senior Member
Join Date: Nov 2009
Location: Are you asking me out?
Old 03-28-2010 , 16:24   Re: Jail Break Rules
Reply With Quote #5

Lol, Its my first plugin. Idk 100% what "#Include" Does. Could you give me a link where i can learn Coding? Since this was just made random out of my head...
__________________
Zombie Dominance

To Do:
- Learn AMXx Script...
ServO is offline
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 03-29-2010 , 15:31   Re: Jail Break Rules
Reply With Quote #6

Quote:
Originally Posted by ServO View Post
Lol, Its my first plugin. Idk 100% what "#Include" Does. Could you give me a link where i can learn Coding? Since this was just made random out of my head...
There is overall thousands of tutorials!


It was a good try for a first one!
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
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 12:13.


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