Raised This Month: $ Target: $400
 0% 

fail


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Stereo
Veteran Member
Join Date: Dec 2010
Old 07-23-2011 , 12:20   fail
Reply With Quote #1

Hi, im spanish and first, sorry for mi bad english

Good, I try to do a plugin that do this:

-When start round, i call a function: mode_lottery and each player must give different money.

I try this but i know that doesn't work:

PHP Code:
public round_start(id) {
    
    new 
modo random_num(012)
    
    switch(
modo
    {
        case 
1modo_lottery()
        case 
2modo_normal()
    }
}

public 
modo_lottery() {

    new 
number random_num(113)

    new 
iPlayers[MAX_PLAYERS], iNumid
    get_players
(iPlayersiNum"ach")
    for(new 
ii<iNumi++) {
        
id iPlayers[i]
        switch(
modo
        {
            case 
1cs_set_user_money(id1000)
            case 
2cs_set_user_money(id2000)
            case 
3cs_set_user_money(id3000)
            case 
4cs_set_user_money(id4000)
            case 
5cs_set_user_money(id5000)
            case 
6cs_set_user_money(id6000)
            case 
7cs_set_user_money(id7000)
            case 
8cs_set_user_money(id8000)
            case 
9cs_set_user_money(id9000)
            case 
10cs_set_user_money(id10000)
            case 
11cs_set_user_money(id11000)
            case 
12cs_set_user_money(id12000)
            case 
13cs_set_user_money(id13000)
        }
    }

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


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