Raised This Month: $51 Target: $400
 12% 

Ayuda Random_num solo funciona el ultimo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
AlgoChikitito
BANNED
Join Date: Feb 2011
Location: España
Old 08-08-2011 , 16:11   Ayuda Random_num solo funciona el ultimo
#1

PHP Code:
#include < amxmodx >
#include < amxmisc >
#include < cstrike >
#include < fun >

#define PLUGIN " Loteria Furien SPAnet"
#define VERSION " v2.4 "
#define AUTHOR " Chikitin "


public plugin_init ( ) 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event"HLTV" "comienza_ronda" "a" "1=0" "2=0")
}

public 
comienza_ronda (  )
{
    new 
azar random_num 150 )
    switch ( 
azar )
    {
        case 
1..10 :
        {
            
cs_set_user_money id cs_get_user_money id ) + 1000 )
            
client_print id print_chat ,  "Ganastes 1000 De Dinero En La Loteria" )
        }
        case 
11..20 :
        {
            
cs_set_user_money id cs_get_user_money id ) + )
            
client_print id print_chat ,  "Ganastes 1 De Dinero En La Loteria" )
        }
        case 
21..30 :
        {
            
cs_set_user_money id cs_get_user_money id ) - 5000 )
            
client_print id print_chat ,  "Perdistes 5000 De Dinero En La Loteria" )
        }
        case 
31..40 :
        {
            
cs_set_user_money id cs_get_user_money id ) + )
            
client_print id print_chat ,  "Ganastes 1 De Dinero En La Loteria" )
        }
        case 
41..50 :
        {
            
cs_set_user_money id cs_get_user_money id ) + )
            
client_print id print_chat ,  "No Ganastes Nada De Dinero En La Loteria" )
        }
        case 
51..60 :
        {
            if ( 
cs_get_user_team id ) == CS_TEAM_T )
            {
                
give_itemid "weapon_hegrenade" )
            }
            else
            {
                
cs_set_user_money id cs_get_user_money id ) +  )
                
client_print id print_chat "Ganastes 1 De Dinero En La Loteria" )
            }
        }
        case 
61..150 :
        {
            
client_print id print_chat ,  "Si Te Sale Este Mensaje ... enorabuena ! No Te A Tocado Nada" )
        }
    }
    return 
PLUGIN_HANDLED

Solo funciona el

PHP Code:
case 61..150 :
        {
            
client_print id print_chat ,  "Si Te Sale Este Mensaje ... enorabuena ! No Te A Tocado Nada" )
        } 
Porque?.

Muchas Gracias
AlgoChikitito 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 13:11.


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