Moved to GSC Help.
Okay, my problem is that humans change team and then they have their own weapons as a zombie.
So they can easily kill every human.
But if a "gunzombie" died, he becomes a normal zombie.
How can i disable the team change?
I searched the forum, but the command:
ui_allow_teamchange "0"
or in the mod in the init() function:
setDvar("ui_allow_teamchange", 0);
does not work
and if use the first code in the console there comes the message:
it is cheat-protected...
so, i hope u will help me :/
Moved to GSC Help.
Code:Dvars() { setdvar("ui_allow_teamchange", "0"); level.teamLimit = 18; level.teamBalance = 0; setDvar("scr_teambalance", 0); setDvar("party_autoteams", 0); }This should work fineCode:Onplayerspawned() { self endon("disconnect"); for(;;) { self waittill("spawned_player"); self thread dvars(); } }
kimi1294 (09-03-2011)
setDvar("ui_allow_teamchange", 0);
Press thanks if I helped you
my English grammar not good
thank you really much, its working
hm, maybe u can help me with my next problem.
The menu is sometimes bugged...
u cannot buy anything from the shop-menu.
This often happens when a player joins the game later, he cannot buy anything.
oh and another problem ^^
u cannot knife in third person mode...
i enabled 3rd person mode for zombies and humans have first person mode.
if zombies knife, they knife into the air automatic...
how can i enable 3rd person mode correctly? so that zombies can knife...
Last edited by kimi1294; 09-03-2011 at 06:41 AM.
removed ^^ because this post was too long...
Last edited by kimi1294; 09-03-2011 at 04:34 PM.
Look at me, I quote massive posts and then complain about how long they are.
NOT UR WHOLE MENUS.GSC, the function where is the shop-menu, not menus.gsc
Last edited by Heartview; 09-04-2011 at 03:29 AM.
Press thanks if I helped you
my English grammar not good
sry idk what u mean...
should i upload my complete mod for you?
I attached it.
Last edited by kimi1294; 09-03-2011 at 04:33 PM.
johnsmith086 (04-24-2012)
idk where i wrote the shop menu, so i thought u would know it, because I only edited the QCZM v4.5