Raised This Month: $32 Target: $400
 8% 

Simple Specific Map configurations


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
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 - 1061 views - 1.3 KB)
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
JustGags
Member
Join Date: Apr 2004
Old 09-29-2004 , 21:45  
Reply With Quote #2

Plugins loads fine, but doesn't seem to work. I have also begun receiving the following in my console since loading the plugin:

Code:
exec sc: not a .cfg or .rc file
Let me know if you need anymore information.
JustGags is offline
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 09-30-2004 , 02:43  
Reply With Quote #3

Quote:
Kid tested, Suzuka approved.
haha, good slogan man. I give you a A+ just for that.
__________________

BigBaller is offline
adam_purkis
Member
Join Date: Aug 2004
Location: Taipei, Taiwan
Old 09-30-2004 , 03:54  
Reply With Quote #4

Well anybody... Does this actually work? Or is the error specific to justgags?
adam_purkis is offline
Send a message via MSN to adam_purkis
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 10-06-2004 , 22:20  
Reply With Quote #5

Code:
#include <amxmod>
should be changed to:
#include <amxmodx>

and if you just ported from an AMX mod then plz give credit where credit is due.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 10-06-2004 , 22:24  
Reply With Quote #6

http://forums.alliedmods.net/showthread.php?t=6516
The last thing we need is like 400 plugins that do this :/
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Reply



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 07:04.


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