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
02-28-2012, 03:36 AM #11
Choco
Respect my authoritah!!
Cody just shut up, your patches look like shit from all the videos I've seen and this tutorial is better written, easier to follow, and using better functioning than yours does. Satanic is a hundred times the coder you will ever be, he actually uses his own menu base instead of the shitty elitemossy one that everyone else does. Just because you C/Ped another patch inside your patch doesn't make you amazing...
03-05-2012, 11:48 PM #12
SCR34M
Banned
dude so i dont need to add any of the Zombies code just add everything in the missions and then i put patch on then i have Zombies?
03-09-2012, 07:49 PM #13
Vilerage
360 Black Scope
Good job!:fyea:
03-11-2012, 02:37 AM #14
where do i put the top code!! Sad Awesome helps me :( :( :(
03-11-2012, 02:40 AM #15
SNOWBALL105
Do a barrel roll!
yay where do you put the top code at
03-11-2012, 06:02 PM #16
Blackstorm
Veni. Vidi. Vici.
Originally posted by .Choco View Post
Cody just shut up, your patches look like shit from all the videos I've seen and this tutorial is better written, easier to follow, and using better functioning than yours does. Satanic is a hundred times the coder you will ever be, he actually uses his own menu base instead of the shitty elitemossy one that everyone else does. Just because you C/Ped another patch inside your patch doesn't make you amazing...


actually satanic uses xg rapidz base, just saying :p

The following user thanked Blackstorm for this useful post:

TheFallen
03-11-2012, 07:50 PM #17
Originally posted by Blackstorm View Post
actually satanic uses xg rapidz base, just saying :p


yeah he knows :p

he just means I changed position/shaders etc. to make it my own :P
03-12-2012, 11:29 PM #18
cody you need to re write yours, people are getting alot of errors, this one here actually works but you are amazing at coding, like i was saying, i dont get any errors, but on yours my menu doesnt even show up
03-13-2012, 08:07 AM #19
PussayPatrol
I'm a neat monster...
Originally posted by h4x View Post
Yes this would work aswell, The code I posted in my tutorial DOES work in any patch, I've already done it with craig christ's "Steal this patch"

" tutorial was very poorly written" lol your tutorial is a couple of sentences and some codes :dumb:


yumadbro:carling:



































































































fukuu:carling:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo