Raised This Month: $ Target: $400
 0% 

fail


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-23-2011 , 13:11   Re: Help with random_num and players
Reply With Quote #4

PHP Code:
public round_start()
{
    new 
modo random_num1);
    
    switch( 
modo )
    {
        case 
1modo_lottery();
        case 
2modo_normal();
    }
}

public 
modo_lottery( ) 
{  
    new 
number;

    new 
iPlayersMAX_PLAYERS ], iNum
    
get_playersiPlayersiNum"ach" ); 
     
    for( new 
iiNumi++ )  
    {  
        
number random_num113 );
        
cs_set_user_moneyiPlayers], number 1000 );
    }  

Keep in mind that you'll get errors if you have not defined the function modo_normal() yet.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
 



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 01:11.


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