AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Map redirection (https://forums.alliedmods.net/showthread.php?t=47321)

over_mind 11-15-2006 04:45

Map redirection
 
(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:

http://i101.photobucket.com/albums/m...nd/console.png





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.

jim_yang 11-15-2006 05:07

Re: Map redirection
 
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")
}


over_mind 11-15-2006 05:40

Re: Map redirection
 
Thanks alot guy. I'll register you as creator of plugin :D


All times are GMT -4. The time now is 06:51.

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