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-27-2012, 11:06 PM #2
Cody_h4x
Nobody is like me
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:
02-27-2012, 11:16 PM #3
KingcreekS
NOTHING IS IMPOSSIBL
cody your method work to me . Smile
02-28-2012, 12:44 AM #4
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:


Your using Elite Mossy's coding... No

The following user groaned Jakes625 for this awful post:

Cody_h4x
02-28-2012, 01:11 AM #5
Cody_h4x
Nobody is like me
Originally posted by SatanicHispanic View Post
Your using Elite Mossy's coding... No

Did I ever ONCE say it was mine?
It's a small script many people used for toggling between gamemodes. :dumb:
02-28-2012, 01:47 AM #6
Originally posted by h4x View Post
Did I ever ONCE say it was mine?
It's a small script many people used for toggling between gamemodes. :dumb:


I'm just saying if you are going to release it make it cool, and your own coding.

Trying to help you not look like a leach, but if you want to go ahead...
02-28-2012, 02:43 AM #7
Cody_h4x
Nobody is like me
Originally posted by SatanicHispanic View Post
I'm just saying if you are going to release it make it cool, and your own coding.

Trying to help you not look like a leach, but if you want to go ahead...


Yea cause I'm a leach :dumb:
Why bother making another? The code was used generally for game modes, I showed how you can utilize it with other menus and such not create a new code that does the exact same thing just because I wanted too :dumb:
02-28-2012, 02:52 AM #8
Originally posted by h4x View Post
Yea cause I'm a leach :dumb:
Why bother making another? The code was used generally for game modes, I showed how you can utilize it with other menus and such not create a new code that does the exact same thing just because I wanted too :dumb:


Bother making another one to prove yourself. Your title says "nobody is like me" yet you do not? Whatever, go ahead believe what you want. I am not going to argue.
02-28-2012, 02:57 AM #9
Cody_h4x
Nobody is like me
Originally posted by SatanicHispanic View Post
Bother making another one to prove yourself. Your title says "nobody is like me" yet you do not? Whatever, go ahead believe what you want. I am not going to argue.


1. It's a quote from a movie aswell as a TRUE statement nobody in the world is exactly like me.
2.It's a scripting language not life, so stop picking e-fights over it.
3.Not going to argue? You've been trying to diss and talk shit for so long to me :lol: I dont even know your name its not known. Just stop.

Bye Drack
02-28-2012, 03:06 AM #10
Technically you started, and I am being mature enough to stop it.

The following user thanked Jakes625 for this useful post:

iiReFuZee

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo