Raised This Month: $ Target: $400
 0% 

Looking for respawn plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 09-26-2013 , 13:38   Re: Looking for respawn plugin
Reply With Quote #11

Quote:
Originally Posted by Zerk0o0o0 View Post
In top middle of screen. If you can, green color for activate and red for disabled?
PHP Code:
#include < amxmodx >  
#include < hamsandwich >  
#include < fun > 

const TASK_ID 1202

new 
stoprespawntimerg_msgsyncpcvar_timer

public 
plugin_init( ) {  
    
register_plugin"HnS respawn""1.0""balck" ); 
    
register_event"HLTV""eventRoundStart""a""1=0""2=0" ); 
    
RegisterHamHam_Killed"player""every_dead");
    
pcvar_timer register_cvar("amx_timerespawn""10");
    
g_msgsync CreateHudSyncObj(); 
}  

public 
client_putinserverid ) {  
    
set_task1.0"respawn"id );  
}  

public 
every_deadid ) {  
    if( 
is_user_connectedid ) ) {  
        
set_task1.0"respawn"id );  
    }  


public 
eventRoundStart( ){
    
timer get_pcvar_num(pcvar_timer);
    
remove_taskTASK_ID ); 
    
stoprespawn 0
    
sethdmsg();


public 
sethdmsg() 

    if(
timer >= 1){ 
        
set_hudmessage(025500.280.0206.00.5); 
  
        
ShowSyncHudMsg(0g_msgsync"Respawn enable: %d"timer); 
  
        --
timer
    } 
    else  
    if(
timer == && !stoprespawn){ 
        
set_hudmessage(150000.280.0206.03.0); 
        
show_hudmessage(0"Respawn is disable");
        
stoprespawn 1
        
remove_taskTASK_ID ); 
    } 
    
set_task1.0"sethdmsg"TASK_ID ); 
   


public 
respawnid ) {  
    if( !
stoprespawn ){ 
        if( !
is_user_aliveid ) && get_user_teamid ) == )  {  
            
ExecuteHamBHam_CS_RoundRespawnid );  
            
give_itemid"weapon_knife" ); 
        }  
    } 

__________________
Balck 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:41.


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