Raised This Month: $ Target: $400
 0% 

Solved How to get random number?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MihaiGamerXD
Member
Join Date: Aug 2018
Old 12-03-2018 , 07:49   How to get random number?
Reply With Quote #1

Hello again, and I wanted to get random players from 1 to 3!
Example:
PHP Code:
new assassin_modenemesis_modeinfection_mode;
new 
g_mode random(3);
if (
g_mode == 1)
    
infection_mode true
if (g_mode == 2)
    
nemesis_mode true
if (g_mode == 3)
    
assassin_mode true 
I wanted to get random number for "random mode"!
Any ideas?

Last edited by MihaiGamerXD; 12-08-2018 at 05:18.
MihaiGamerXD is offline
 



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 07:34.


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