View Full Version : Nextmap Plugin
Ba5ic
11-30-2006, 07:24 AM
Hey Guys
Back 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!.
As i said it was quite a while ago i saw this, any help would be good.
Thanks!
diamond-optic
11-30-2006, 08:10 PM
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
orbit
12-01-2006, 05:36 AM
If you're comfortable editing and compiling sma files, you can do the following:
1. In your addons/amxmodx/scripts directory is a file called nextmap.sma. Copy this to something like mynextmap.sma.
2. Edit mynextmap.sma and find the following lines:
public sayNextMap()
{
new name[32]
getNextMapName(name, 31)
client_print(0, print_chat, "%L %s", LANG_PLAYER, "NEXT_MAP", name)
}
Replace the above with this:
public sayNextMap()
{
client_print(0, print_chat, "How stupid are you? what do you expect on a 24/7 Avalanche server!" )
}
3. In your addons/amxmodx/configs/plugins.ini file, comment out the orginal nextmap.amxx file and add your mynextmap.amxx
4. 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.
I 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.
-O-
Ba5ic
12-01-2006, 06:04 AM
Compiled , installed and working perfectly!
Thanks Guys
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.