ItsMods
[Request] timer - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: [Request] timer (/Thread-Request-timer.html)



timer - Gamemaster20 - 10-08-2011

i need a code like in any of the zombie mods where it chooses someone random to be the zombie...i appreciate it


RE: timer - Nekochan - 10-08-2011

(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)];



RE: timer - Nukem - 10-08-2011

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"]);



RE: timer - Nekochan - 10-08-2011

because it will return you only number lol
ah lol nvr, randomINt maybe? or random is exist too :/ ?


RE: timer - Tomsen1410 - 10-08-2011

Code:
num = randomint(level.players.size); level.RandomPlayer = level.players[num];