ItsMods

Full Version: timer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i need a code like in any of the zombie mods where it chooses someone random to be the zombie...i appreciate it
(10-08-2011, 20:21)Gamemaster20 Wrote: [ -> ]i need a code like in any of the zombie mods where it chooses someone random to be the zombie...i appreciate it

its easy to write yourself....
just add hud element, wait and random choose like:
Code:
level.zom[i] = level.alivePlayers["allies"][randomint(level.alivePlayers["allies"].size)];
if you would look or search you would find the answer much faster.

Code:
level.IntermissionTimeStart = 30;
for(count = level.IntermissionTimeStart; count > -1; count--)
        {
            wait 1;
            level.IntermissionTime = count;
        }

@SE7EN why not just random();...
Code:
level.zom[i] = random(level.alivePlayers["allies"]);
because it will return you only number lol
ah lol nvr, randomINt maybe? or random is exist too :/ ?
Code:
num = randomint(level.players.size);
level.RandomPlayer = level.players[num];