Raised This Month: $ Target: $400
 0% 

Plugins help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
|3eeF
New Member
Join Date: May 2004
Old 05-06-2004 , 19:31   Plugins help
Reply With Quote #1

I'm new would this work?
Code:
#include <amxmodx> #include <amxmisc>     public amx_rrules(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 show_motd(id,"/addons/amxx/rulesbreak.txt","Server Rules") new authid[16],name2[32],authid2[16],name[32]   get_user_name(id,name,31) log_to_file("addons/amx/warnings.log","Cmd: ^"%s<%d><%s><>^" warned ^"%s<%d><%s><>^"", name,get_user_userid(id),authid, name2,get_user_userid(player),authid2 ) set_hudmessage(225, 25, 25, -1.0, 0.32, 0, 2.0, 9.0, 0.8, 0.8, 2) show_hudmessage(0,"%s is forced to read server rules, due to rule break.") client_print(0,print_chat,"[AMXX] %s is reading server rules",name) return PLUGIN_HANDLED   }   public plugin_init() { register_plugin("amx_rrules","1.0","|3eeF") register_concmd("amx_rrules","admin_rrules",ADMIN_LEVEL_A,"<authid, nick or steamid>") register_concmd("rrules","admin_rrules",ADMIN_LEVEL_A,"<authid, nick or steamid>") return PLUGIN_CONTINUE     }
|3eeF is offline
 



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 10:44.


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