Raised This Month: $ Target: $400
 0% 

How to get random round?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
danonix
Senior Member
Join Date: Dec 2012
Old 01-28-2013 , 04:53   How to get random round?
Reply With Quote #1

As topic says, how to get random ROUNDS in each map, so sometimes function happens only one time in map, sometimes 3 times etc.

Thanks
danonix is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-28-2013 , 07:47   Re: How to get random round?
Reply With Quote #2

new variable = random(100)
if(variable < 10) {
StartFunction()
}
__________________

Last edited by Napoleon_be; 01-28-2013 at 07:48.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-28-2013 , 20:28   Re: How to get random round?
Reply With Quote #3

Quote:
Originally Posted by danonix View Post
As topic says, how to get random ROUNDS in each map, so sometimes function happens only one time in map, sometimes 3 times etc.
Your request is unclear. Do you want a random number of rounds OR a function that only happens a random number of times on a map? One or the other.


Quote:
Originally Posted by Napoleon_be View Post
new variable = random(100)
if(variable < 10) {
StartFunction()
}
That is a 10% probability of StartFunction() being executed. Not quite the same but I guess it could be an answer considering the poorly formed question.
__________________
fysiks is offline
danonix
Senior Member
Join Date: Dec 2012
Old 01-29-2013 , 03:33   Re: How to get random round?
Reply With Quote #4

Code:
a function that only happens a random number of times on a map
Thanks : p
danonix is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-29-2013 , 20:21   Re: How to get random round?
Reply With Quote #5

You need to give more details. What is this function and how often is it supposed to happen? What is the maximum number of times you want this function to happen? etc.
__________________
fysiks is offline
danonix
Senior Member
Join Date: Dec 2012
Old 01-30-2013 , 02:53   Re: How to get random round?
Reply With Quote #6

I would like to get random players in each map, so they can smell a vip. It should happen maximum 3 times in map ( but it shouldn't loss every map. )

Last edited by danonix; 01-30-2013 at 02:54.
danonix is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 01-30-2013 , 10:27   Re: How to get random round?
Reply With Quote #7

Why you don't try ZP's chance idea ?
TheDS1337 is offline
danonix
Senior Member
Join Date: Dec 2012
Old 01-30-2013 , 17:04   Re: How to get random round?
Reply With Quote #8

I don't know how zombie mods works, because I never had one, so I couldn't know that there is a thing.

Last edited by danonix; 01-30-2013 at 17:05.
danonix is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-30-2013 , 20:31   Re: How to get random round?
Reply With Quote #9

You will need to answer all questions asked of you if you want a real answer.
__________________
fysiks is offline
danonix
Senior Member
Join Date: Dec 2012
Old 01-31-2013 , 04:57   Re: How to get random round?
Reply With Quote #10

This function should do itself randomly on all maps without admin help. It would in random rounds loss a player, that earn something from VIP. Function shouldn't happen every map, but if do, it loss maximum in 3 rounds. I think, that I gave everything.
danonix is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode