Raised This Month: $ Target: $400
 0% 

willing to help a noob on a noob script?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 01-11-2005 , 21:49  
Reply With Quote #3

Try this out.
Code:
#include <amxmodx> public plugin_init() {    register_plugin("PeepShowConfigLoader","1","Revelation")    register_menucmd(register_menuid("/yChoose Option:"),1023,"LoadConfig")    register_clcmd("say /peepshowcfgmenu","ShowPSCfgMenu") } public ShowPSCfgMenu(id) {     new szMenuBody[256]     new keys     format(szMenuBody,255,"\yCounter-Strike Powers Menu:\w^n^n")     add(szMenuBody,255,"1. Load Public Server Settings^n")     add(szMenuBody,255,"2. Load War Server Settings^n")     add(szMenuBody,255,"3. 3 Restarts Then Live^n")     add(szMenuBody,255,"4. Restarts The Knives^n^n")     add(szMenuBody,255,"5. Restarts Round")         keys = (1<<0|1<<1|1<<2|1<<3|1<<4)     show_menu(id,keys,szMenuBody,-1 )         return PLUGIN_CONTINUE } public LoadConfig(id,key) {     switch(key)     {        case 0:        {           server_cmd("exec cfgs/public.cfg")        }        case 1:        {           server_cmd("exec cfgs/war.cfg")        }        case 2:        {           server_cmd("exec cfgs/live.cfg")        }        case 3:        {           server_cmd("exec cfgs/knives.cfg")        }        case 4:        {           server_cmd("sv_restartround 1")        }     }     return PLUGIN_HANDLED }
Peli is offline
Send a message via MSN to Peli
 



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 19:28.


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