Raised This Month: $ Target: $400
 0% 

Map redirection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
over_mind
Member
Join Date: Aug 2006
Location: Cajun Country!
Old 11-15-2006 , 04:45   Map redirection
Reply With Quote #1

(This is for a TSRP server) Hello I'm trying to use this plugin to change the map to mecklenburgv3_b1 whenever it is on ts_lobby. However it makes some errors, here is the plugin:

Code:
#include <amxmodx>

public plugin_init()
    {
    register_plugin("Map Redirection","1.0","TSRP")
    
    new mapname[32]
    get_mapname( mapname, 31 )
    
    if( equali( mapname, "ts_lobby" ) ) server_cmd( "map mecklenburgv3_b1" )
    return PLUGIN_HANDLED
}
When the server starts up and it switches to mecklenburgv3_b1, it shows this in the console:







What do these metamod messages mean? And also they are lagging the server when it runs, it makes the ping go all the way in the thousands.
over_mind is offline
Send a message via AIM to over_mind Send a message via MSN to over_mind
jim_yang
Veteran Member
Join Date: Aug 2006
Old 11-15-2006 , 05:07   Re: Map redirection
Reply With Quote #2

try this
Code:
public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
}
public plugin_cfg()
{
    new map[32]
    get_mapname(map, 31)
    if(equali(map, "de_dust2"))
        server_cmd("map fy_iceworld")
}
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
over_mind
Member
Join Date: Aug 2006
Location: Cajun Country!
Old 11-15-2006 , 05:40   Re: Map redirection
Reply With Quote #3

Thanks alot guy. I'll register you as creator of plugin
over_mind is offline
Send a message via AIM to over_mind Send a message via MSN to over_mind
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 06:51.


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