(adsbygoogle = window.adsbygoogle || []).push({});
Cody_h4x tutorial was very poorly written, and would not work if you don't have Elite Mossy's Patch.
Now:
to "call the patch you want" just easily do this in your menu:
setDvar("custompatch", "zombies");
map_restart(false);
Then Add this to init (Before level thread onPlayerSpawned()) :
level thread switchPatch(getDvar("custompatch"));
Add this anywhere in your patch
switchPatch(patch)
{
switch(patch)
{
case "zombies":level.onPlayerConnect = :
nZombiePlayerConnect;break;
case "other":level.onPlayerConnect = ::customOnPlayerConnect;break;
}
}
Basically when you set theDvar it checks if it exists. If it does then onPlayerConnect goes to the custom function of the patch (monitors onPlayerSpawned aswell)
That makes for easy patch transitions and a lot more "Situated"