Post: Multiple Patches in 1 [Revised]
02-27-2012, 10:40 PM #1
(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 Winky Winky

    
switchPatch(patch)
{
switch(patch)
{
case "zombies":level.onPlayerConnect = :GaspnZombiePlayerConnect;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"
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to Jakes625 for this useful post:

Choco, Kitty=^.^=, Kush Friendly, xChronicModz, xePixTvx
03-13-2012, 08:56 AM #20
Originally posted by PussayPatrol View Post
yumadbro:carling:



































































































fukuu:carling:

y u no fuk me Gaspkay:
03-13-2012, 07:54 PM #21
PussayPatrol
I'm a neat monster...
Originally posted by y View Post
y u no fuk me Gaspkay:


stare
:carling: umadbro :carling:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo