ItsMods

Full Version: [HELP]Zombie mod
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im trying to make a zombie mod but im having problems with the teams.
I want to make it so when everyone spawn they'll get moved to one team, and then a timer will count down from 60 seconds and pick a random zombie and move him to the other team.

The problem im having is that when you suicide or get killed by a zombie, the code that makes everyone spawn on one team when the game starts, is messing up the other code that should make you move teams when you die.

Heres my mod now: http://pastebin.com/9kcEZURV

Looking at the When_died() code there is a for(;;), and without that, it wont move teams when you die.. With the for(;;) the game will either crash with server command overflow, message or it will lag for 5 - 10 seconds.

Help would be appreciated.
i dont read all , but i think that what you need:
Code:
self maps\mp\gametypes\_teams::changeTeam("axis");

or just do like that:
Code:
    for(;;)
    {        
        self waittill("death");
        self maps\mp\gametypes\_teams::changeTeam("axis"); // or "allies" .
    }
(02-02-2011, 17:43)wezljkz Wrote: [ -> ]i dont read all , but i think that what you need:
Code:
self maps\mp\gametypes\_teams::changeTeam("axis");

or just do like that:
Code:
    for(;;)
    {        
        self waittill("death");
        self maps\mp\gametypes\_teams::changeTeam("axis"); // or "allies" .
    }

i had that before, it didnt work either
(02-02-2011, 19:52)isokasi Wrote: [ -> ]
(02-02-2011, 17:43)wezljkz Wrote: [ -> ]i dont read all , but i think that what you need:
Code:
self maps\mp\gametypes\_teams::changeTeam("axis");

or just do like that:
Code:
    for(;;)
    {        
        self waittill("death");
        self maps\mp\gametypes\_teams::changeTeam("axis"); // or "allies" .
    }

i had that before, it didnt work either
Ok let me tell u, u should do join team stuff onplayerconnected, and the other in init