Raised This Month: $ Target: $400
 0% 

motd /rules plugin updated


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
akash_guptacosmos
Senior Member
Join Date: May 2013
Location: India,Kolkata
Old 06-26-2013 , 02:12   motd /rules plugin updated
Reply With Quote #1

Updated the plugin as last version have error and the plugin was sended to Trash :/

This Plugin Helps You To Show Your Server rules to players once someone type /rules,/showrules etc
Players Command /rules,/showrules,rules and RULES.

How To install?
Put rules.txt in cstrike\addons\amxmodx\configs
goto cstrike\addons\amxmodx\plugins and add server_rules.amxx
then open plugins.ini(cstrike\addons\amxmodx\config) add this line server_rules.amxx

Have Fun With This Plugin.
Sorry for bad english . Don't forgot to say thanx [IMG]http://************/image/sc71wwu5j/[/IMG]
Attached Files
File Type: txt rules.txt (978 Bytes, 171 views)
File Type: sma Get Plugin or Get Source (server_rules.sma - 598 views - 2.4 KB)

Last edited by akash_guptacosmos; 06-26-2013 at 03:00.
akash_guptacosmos is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-26-2013 , 02:35   Re: motd /rules plugin updated
Reply With Quote #2

Same errors still exist. Did you even bother to read the Rules and Guidelines?
__________________
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
akash_guptacosmos
Senior Member
Join Date: May 2013
Location: India,Kolkata
Old 06-26-2013 , 02:37   Re: motd /rules plugin updated
Reply With Quote #3

can you say me the errors?
akash_guptacosmos is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-26-2013 , 02:40   Re: motd /rules plugin updated
Reply With Quote #4

Code:
#include <amxmod>


Code:
set_task(10.0,"informclient",432211+id,str,2)
str is not needed, just use the TaskID

For starters
__________________
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
akash_guptacosmos
Senior Member
Join Date: May 2013
Location: India,Kolkata
Old 06-26-2013 , 02:46   Re: motd /rules plugin updated
Reply With Quote #5

akash_guptacosmos is offline
akash_guptacosmos
Senior Member
Join Date: May 2013
Location: India,Kolkata
Old 06-26-2013 , 03:00   Re: motd /rules plugin updated
Reply With Quote #6

Bro updated check it now?
akash_guptacosmos is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-26-2013 , 03:02   Re: motd /rules plugin updated
Reply With Quote #7

Quote:
Originally Posted by akash_guptacosmos View Post
Bro updated check it now?
You didn't fix the plugin, there are more optimizations you can do
__________________
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
akash_guptacosmos
Senior Member
Join Date: May 2013
Location: India,Kolkata
Old 06-26-2013 , 03:48   Re: motd /rules plugin updated
Reply With Quote #8

akash_guptacosmos is offline
Smatify
Senior Member
Join Date: Nov 2012
Location: Where ever you want
Old 06-26-2013 , 05:19   Re: motd /rules plugin updated
Reply With Quote #9

"Your" Plugin:
PHP Code:
/*AMXMOD script.
*=====
* server_rules
* Server Rules
*=====
* (server_rules.sma)
* Version 1.5 
* (c) Copyright 2013, c0Smos <[email protected]>
* Display Rules - ClanMod Style
* Command say /showrules,/rules 
* Added: additional say commands to display rules on more ways
* rules - showrules - serverrules - /rules - /showrules - /serverrules
* Can execute rules on players like ClanMod - amx_showrules username
* Can force rules on players at logon with cvar in amx.cfg: forcerules 1
*/  

#include <amxmodx> 

public informclient(strindex[]) 

  new 
myindex 
  myindex
=str_to_num(strindex
  if(
myindex>0
    
client_print(myindex,print_chat,"server is using /rules plugin by c0Smos type ^"RULES^" to see the rules everyone is expected to follow on this server"



#include <amxmisc>

public mandatoryinform(strindex[]) 

  new 
myindex 
  myindex
=str_to_num(strindex
  if(
myindex>0
    
show_motd(myindex,"/addons/amxmodx/configs/rules.txt","Server Rules"



public 
client_putinserver(id){ 
  new 
str[4
  
num_to_str(id,str,2
  
set_task(10.0,"informclient",229036+id,str,2
  if(
get_cvar_num("forcerules")) 
  
set_task(11.0,"mandatoryinform",229036+id,str,2



public 
client_disconnect(id){ 
  
remove_task(432211+id
  
remove_task(432611+id



public 
server_rules(id){ 
   
show_motd(id,"/addons/amxmodx/configs/rules.txt","Server Rules"
   return 
PLUGIN_HANDLED 



public 
admin_showthem(id,level,cid){ 
if (!
cmd_access(id,level,cid,2)) 
  return 
PLUGIN_HANDLED 
new arg[32
read_argv(1,arg,31
new 
player cmd_target(id,arg,5
if (!
player) return PLUGIN_HANDLED 

//new name[32] 
//get_user_name(player,name,31) 
client_cmd(player,"say Don't shoot! I'm reading the rules!"
show_motd(player,"/addons/amxmodx/configs/rules.txt","READ THE RULES!"
  return 
PLUGIN_HANDLED 


public 
plugin_init()  

{  
   
register_plugin("Server Rules","1.5a","c0Smos")  
   
register_clcmd("say /showrules""server_rules"
   
register_clcmd("say showrules""server_rules"
   
register_clcmd("say /rules""server_rules"
   
register_clcmd("say rules""server_rules"
   
register_clcmd("say /serverrules""server_rules"
   
register_clcmd("say serverrules""server_rules"
   
register_cvar("forcerules","0"
   
register_concmd("amx_showrules","admin_showthem",ADMIN_SLAY,"<authid, nick or #userid>"
   return 
PLUGIN_CONTINUE  
      

The original plugin (Link here:
PHP Code:
/*AMXMOD script.
*=====
* server_rules
* Server Rules
*=====
* (server_rules.sma)
* Version 1.4 
* http://djeyl.net/forum/index.php?showtopic=11675&st=0
* (c) Copyright 2004, DoubleTap <[email protected]>
* http://counterstrike.twazz.net
* Display Rules - ClanMod Style
* Much thanks to Deagles3 for giving this plugin some life !
* modified to support both amx and amxx by Dopefish
* Command say /showrules 
* Added: additional say commands to display rules on more ways
* rules - showrules - serverrules - /rules - /showrules - /serverrules
* Can execute rules on players like ClanMod - amx_showrules username
* Can force rules on players at logon with cvar in amx.cfg: forcerules 1
*/  

#include <amxmodx> 
#include <amxmisc>

public informclient(strindex[]) { 
    new 
myindex 
    myindex
=str_to_num(strindex
    if(
myindex>0
        
client_print(myindex,print_chat,"Say ^"RULES^" to see the rules everyone is expected to follow on this server"



public 
mandatoryinform(strindex[]) { 
    new 
myindex 
    myindex
=str_to_num(strindex
    if(
myindex>0
    
#if defined _amxmodx_included
        
show_motd(myindex,"/addons/amxx/rules.txt","Server Rules"
    
#else
        
show_motd(myindex,"/addons/amxx/rules.txt","Server Rules")
    
#endif


public 
client_putinserver(id) { 
    new 
str[4
    
num_to_str(id,str,2
    
set_task(10.0,"informclient",432211+id,str,2
    if(
get_cvar_num("forcerules")) 
    
set_task(11.0,"mandatoryinform",432611+id,str,2


public 
client_disconnect(id) { 
    
remove_task(432211+id
    
remove_task(432611+id


public 
server_rules(id) { 
    
#if defined _amxmodx_included
        
show_motd(id,"/addons/amxx/rules.txt","Server Rules"
    
#else
        
show_motd(id,"/addons/amxx/rules.txt","Server Rules"
    
#endif
    
return PLUGIN_HANDLED 


public 
admin_showthem(id,level,cid) { 
    if (!
cmd_access(id,level,cid,2)) 
          return 
PLUGIN_HANDLED 
    
new arg[32
    
read_argv(1,arg,31
    new 
player cmd_target(id,arg,5
    if (!
player) return PLUGIN_HANDLED 

    
//new name[32] 
    //get_user_name(player,name,31) 
    
client_cmd(player,"say Don't shoot! I'm reading the rules!"
    
#if defined _amxmodx_included    
        
show_motd(player,"/addons/amxx/rules.txt","READ THE RULES!"
    
#else
        
show_motd(player,"/addons/amxx/rules.txt","READ THE RULES!"
    
#endif
    
return PLUGIN_HANDLED 


public 
plugin_init() {  
    
register_plugin("Server Rules","1.4","DoubleTap")  
    
register_clcmd("say /showrules""server_rules"
    
register_clcmd("say showrules""server_rules"
    
register_clcmd("say /rules""server_rules"
    
register_clcmd("say rules""server_rules"
    
register_clcmd("say /serverrules""server_rules"
    
register_clcmd("say serverrules""server_rules"
    
register_cvar("forcerules","0"
    
register_concmd("amx_showrules","admin_showthem",ADMIN_SLAY,"<authid, nick or #userid>"
    return 
PLUGIN_CONTINUE  

__________________
Selling Hosting stuff such as Webspace and Game- & VoiceServer

I'm also selling Steam Keys.
For more informations, contact me.

(Homepage is under development)
Smatify is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-26-2013 , 06:13   Re: motd /rules plugin updated
Reply With Quote #10

Don't release existing plugins with minor modifications. Something it should be post more in the related thread.

I'm trashing this, since you have changed the original author by yours, and it's obvious you have no idea what you're doing.

Please don't release again a plugin.
__________________
Arkshine 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 00:04.


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