Raised This Month: $ Target: $400
 0% 

[HELP] Round Number


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Trickzz
Member
Join Date: Jun 2011
Old 06-19-2011 , 18:35   Re: [HELP] Round Number
Reply With Quote #1

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

#define PLUGIN "Advanced Rounds"
#define VERSION "1.0"
#define AUTHOR "Trickz"

new g_Health

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("HLTV""event_round_start""a""1=0""2=0")
    
    
g_Health register_cvar("ar_firstround_hp""30");        
    
    
g_maxplayers=get_maxplayers() 
    
         new 
iEntity    
    
while( ( iEntity find_ent_by_classiEntity"func_buyzone" ) ) > )
       
       if( 
entity_get_intiEntityEV_INT_iuser1 ) != 1337 )
            
remove_entityiEntity );
}

public 
plugin_precache() 
{
    new 
iEntity create_entity"func_buyzone" );
    
    if( 
iEntity ) {
        
entity_set_sizeiEntityFloat:{ -4096.0, -4096.0, -4096.0 }, Float:{ -4095.0, -4095.0, -4095.0 } );
        
entity_set_intiEntityEV_INT_iuser11337 );
    }
}

public 
event_round_start()
{
    
round_number++
    
    switch(
round_number)
    {
        case 
1:
        {
             new 
players[32], playerpnum;
             
get_players(playerspnum"a");
             for(new 
0pnumi++) 
                  
player players[i];
                  
strip_user_weapons
                  give_item
(id"weapon_knife"
                       
set_user_health(id"30" get_pcvar_num(g_Health));
        }
        case 
2:
        {
             new 
players[32], playerpnum;
             
get_players(playerspnum"a");
             for(new 
0pnumi++) 
                  
player players[i];
                  
strip_user_weapons
                  give_item
(id"weapon_glock18")
        }
        case 
3:
        {
             new 
players[32], playerpnum;
             
get_players(playerspnum"a");
             for(new 
0pnumi++) 
                  
player players[i];
                  
strip_user_weapons
                  give_item
(id"weapon_usp")
        }
        case 
4,5:
        {
             new 
players[32], playerpnum;
             
get_players(playerspnum"a");
             for(new 
0pnumi++) 
                  
player players[i];
                  
strip_user_weapons
                  give_item
(id"weapon_deagle")
        }
    }



Everbody, can help me?
Attached Thumbnails
Click image for larger version

Name:	Image 004.png
Views:	279
Size:	19.4 KB
ID:	87700  
Trickzz 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 23:33.


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