public Plugin:myinfo = { name = "spawntools7", author = "meng", description = "spawn point editing tools", version = VERSION, url = "" }
new Handle:AdminMenu; new Handle:KillSpawnsADT; new Handle:CustSpawnsADT; new bool:RemoveDefSpawns; new bool:InEditMode; new String:MapCfgPath[PLATFORM_MAX_PATH]; new String:g_szMapName[64], String:g_szWorkShopID[64]; new RedGlowSprite; new BlueGlowSprite;
public OnPluginStart() { CreateConVar("sm_spawntools7_version", VERSION, "Spawn Tools 7 Version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY|FCVAR_DONTRECORD);
decl String:configspath[PLATFORM_MAX_PATH]; BuildPath(Path_SM, configspath, sizeof(configspath), "configs/spawntools7"); if (!DirExists(configspath)) CreateDirectory(configspath, 509);
BuildPath(Path_SM, configspath, sizeof(configspath), "configs/spawntools7/workshop"); if (!DirExists(configspath)) CreateDirectory(configspath, 509);
new Handle:topmenu; if (LibraryExists("adminmenu") && ((topmenu = GetAdminTopMenu()) != INVALID_HANDLE)) OnAdminMenuReady(topmenu);
A recent CS:GO update trimmed the "workshop" prefix from workshop map names. If you look at the community server list, you'll see map names are shown with this nomenclature now: "/12246843/de_cortona" for example.
This means Doc-Holiday's code needs to be edited ever so slightly. In the line where it says:
PHP Code:
if(StrContains(mapName, "workshop", false) != -1)
if you change "workshop" to "/", that worked for me.
Then compile, as Doc-Holiday says, and you should be able to play around with spawn points on workshop maps once more!
I don't know about anyone else, but this plugin has become all the more pertinent now that there is a vast number of quality maps on offer, which are quick to download (goodbye sv_download!), which you don't have to update yourself, which don't need to go into a silly mapgroup without breaking the server and which are often way better than the stock matchmaking maps that we've been playing on for a decade (de_dust, come on seriously ...)
A recent CS:GO update trimmed the "workshop" prefix from workshop map names. If you look at the community server list, you'll see map names are shown with this nomenclature now: "/12246843/de_cortona" for example.
good eye. I assume GetCurrentMap still gets the full workshop/id/name path tho because of how those maps are reported in 'status' and maphistory
In HLSW and on my CSGO servers were my version is running still shows workshop/#####/Map_Name
So not sure what update your talking about. but mine still works.
Well another update has come out since... And it probably had something todo with why in the that update they fixed people being able to use workshop maps. Yes, it is now back to workshop/id/name paths.
Well another update has come out since... And it probably had something todo with why in the that update they fixed people being able to use workshop maps. Yes, it is now back to workshop/id/name paths.
Yep, all back to normal now.
On a side note, does anyone know how to avoid spawn stacking? No matter how spaced out my points are or how many extra points there are compared with the number of players spawning, I can't seem to avoid it. Also tried completely removing default spawns and starting afresh, but still no luck.
I know someone else has commented on this elsewhere.
I've only ever noticed this on workshop maps, so perhaps there's a clue there.