| closedNextmap Plugin |
| Started by Ba5ic on 11-30-2006, 07:24 AM |
Threads: 26
Joined: Nov 2005
Hey GuysrnrnBack in the heady days when Firestorm was leader of [RST], on there 24/7 Ava server he had a plugin which " when a pubber typed" nextmap it displayed a message in chat, something along the lines of " how stupid are you? what do you expect on a 24/7 Avalanche server!.rnrnAs i said it was quite a while ago i saw this, any help would be good.rnrnThanks!
Threads: 103
Joined: May 2005
you could probably edit the amxx language files (not sure off the top of my head which) to print whatever you want when the nextmap shortcut is used
Threads: 2
Joined: Jan 2005
If you're comfortable editing and compiling sma files, you can do the following:rnrn1. In your addons/amxmodx/scripts directory is a file called nextmap.sma. Copy this to something like mynextmap.sma.rn2. Edit mynextmap.sma and find the following lines:rnrnpublic sayNextMap()rn{rn new name[32]rnrn getNextMapName(name, 31)rn client_print(0, print_chat, "%L %s", LANG_PLAYER, "NEXT_MAP", name)rn}rnrnrnReplace the above with this:rnrnpublic sayNextMap()rn{rn client_print(0, print_chat, "How stupid are you? what do you expect on a 24/7 Avalanche server!" )rn}rnrn3. In your addons/amxmodx/configs/plugins.ini file, comment out the orginal nextmap.amxx file and add your mynextmap.amxxrnrn4. Compile mynextmap.sma and put the compiled mynextmap.amxx in your plugins directory. Change the map to reload the plugin and you're all set.rnrnI just tried this on my server and it works fine. If you want the sma file, just let me know and I will post it to you.rnrn-O-
Threads: 26
Joined: Nov 2005
Compiled , installed and working perfectly!rnrnThanks Guys

