Raised This Month: $ Target: $400
 0% 

Respawn Help..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
EpicFail.
Senior Member
Join Date: May 2010
Old 08-02-2010 , 12:33   Respawn Help..
Reply With Quote #1

Uhmm how i can make my Respawn Code Used only when I death..
Here the Code:
PHP Code:
{    
                 if( 
g_bRespawnUsed[id] )
            {
                
ChatColorid"%s You've already !gRespawned!y! Wait until next map!"CLAN_TAG );
            }
            
            else if( 
iMoney RESPAWN_COST )
            {
                
ChatColorid"%s You don't have enough !gMoney !yto buy that!"CLAN_TAG );
                
                
CmdMainMenuid );
            }
            
            else
            {
                
ExecuteHamBHam_CS_RoundRespawnid );
                
                
g_bRespawnUsed[id] = true
                
                cs_set_user_money
idiMoney RESPAWN_COST );
                
                new 
name[32]
                
get_user_nameidname31 )
                
                
ChatColor0"%s %s You have been !gRespawned!y!"CLAN_TAGname );
            }
        } 
Please help me and Sorry for bad English


Edit:

i add to this
PHP Code:
if( !is_user_aliveid ) ) 
and i still can buy respawn when i alive

here the now code:
PHP Code:
{    
                 if( 
g_bRespawnUsed[id] )
            {
                
ChatColorid"%s You've already !gRespawned!y! Wait until next map!"CLAN_TAG );
            }
            
            else if( 
iMoney RESPAWN_COST )
            {
                
ChatColorid"%s You don't have enough !gMoney !yto buy that!"CLAN_TAG );
                
                
CmdMainMenuid );
            }
            
            else
            {
                
ExecuteHamBHam_CS_RoundRespawnid );
                
                
g_bRespawnUsed[id] = true
                
                cs_set_user_money
idiMoney RESPAWN_COST );
                
                new 
name[32]
                
get_user_nameidname31 )
                
                
ChatColor0"%s %s You have been !gRespawned!y!"CLAN_TAGname );    
            }
            
            if( !
is_user_aliveid ) )
            {
                
ChatColor0"%s You must be dead to !gRespawn!y!"CLAN_TAG );
                return 
PLUGIN_HANDLED;
            }
        } 

Last edited by EpicFail.; 08-02-2010 at 13:51.
EpicFail. 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 00:11.


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