View Single Post
hamilton5
Veteran Member
Join Date: Oct 2012
Location: USA
Old 08-26-2013 , 03:39   Re: advcommands mapcfg & workshop maps
Reply With Quote #2

Code:
    new String:map[64]; new String:mapBase[32]; new String:mapString[64];
    GetCurrentMap(map, sizeof(map));
    File_GetBaseName(map, mapBase, sizeof(mapBase));
    Format(mapString, 64, "cfg/mapcfg/%s.cfg", mapBase);
    if (FileExists(mapString)) {
        ServerCommand("exec mapcfg/%s", mapBase);
    }

Last edited by hamilton5; 08-26-2013 at 04:04.
hamilton5 is offline