View Single Post
Plugin Info:     Modification:          Category:         
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 08-31-2004 , 11:10   Simple Specific Map configurations
Reply With Quote #1

This is a small, simple plugin for AMXX, that allows you to set up commands to be run, when a map of a specific name comes into play.

Basically, you run the plugin, and it creates a file, named mapconfigs.ini. Inside of it, you write, manually or using the included commands, first the FULL name of the map, then on the line below it, the command, in quotes, with ;'s seperating commands, the things you want the server to do when it switches to that map.

Example:
TS -map lobby

"ts_lobby"
"weaponrestrictions 0;say KUNG FOO ONLY"

Then, when the map is reloaded, it looks for the line with the map on it, and executes the command under it.

With the command, simply do amx_write_settings "ts_lobby" "weaponrestrictions 0;say KUNG FOO ONLY"

and it should work.

Kid tested, Suzuka approved.
Attached Files
File Type: sma Get Plugin or Get Source (mapconfig.sma - 1067 views - 1.3 KB)
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka