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

Looking for respawn plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zerk0o0o0
Member
Join Date: Feb 2010
Old 09-22-2013 , 07:34   Looking for respawn plugin
Reply With Quote #1

Hello, i am looking for simple respawn plugin. Me need a plugin who do this.
In first 10 seconds of new round, if terrorist be dead by killself then they get respawn instant.
After 10 seconds, respawn is disable. I see plugin for DR, but me need only for TS. It's for HNS server.
Zerk0o0o0 is offline
Old 09-22-2013, 16:21
Black Rose
This message has been deleted by Black Rose. Reason: Sorry. Wrong thread. ^^
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 09-22-2013 , 16:29   Re: Looking for respawn plugin
Reply With Quote #2

Quote:
Originally Posted by Zerk0o0o0 View Post
Hello, i am looking for simple respawn plugin. Me need a plugin who do this.
In first 10 seconds of new round, if terrorist be dead by killself then they get respawn instant.
After 10 seconds, respawn is disable. I see plugin for DR, but me need only for TS. It's for HNS server.
PHP Code:
#include < amxmodx > 
#include < hamsandwich > 
#include < cstrike > 
#include < fun >

const TASK_ID 1202;

new 
stoprespawn;

public 
plugin_init( )  { 
    
register_plugin"Respawn""1.0""balck" );
    
register_event"HLTV""eventRoundStart""a""1=0""2=0" );
    
RegisterHamHam_Killed"player""every_dead");  


public 
STOPrespawn( ){
    
stoprespawn 1;
}

public 
eventRoundStart( ){
    
remove_task(TASK_ID);
    
stoprespawn 0;
    
set_task10.0"STOPrespawn"TASK_ID );
}

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


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


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

Here is it
__________________

Last edited by Balck; 09-23-2013 at 05:57.
Balck is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 09-23-2013 , 03:35   Re: Looking for respawn plugin
Reply With Quote #3

Your code is bad. You only need one task at Round begin and one boolean.
Just set the boolean to true and if a player dies check if the bool is true, if not, respawn player.
Also on Hide'n'Seek Terrorists have no weapons. :-)
__________________
Kia is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 09-23-2013 , 05:56   Re: Looking for respawn plugin
Reply With Quote #4

Quote:
Originally Posted by Kia View Post
Also on Hide'n'Seek Terrorists have no weapons. :-)
sorry i don't know this mod :S
__________________

Last edited by Balck; 09-23-2013 at 06:02.
Balck is offline
Zerk0o0o0
Member
Join Date: Feb 2010
Old 09-24-2013 , 06:35   Re: Looking for respawn plugin
Reply With Quote #5

Works. Thanks. I will tested but works for now
Zerk0o0o0 is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 09-24-2013 , 10:54   Re: Looking for respawn plugin
Reply With Quote #6

Quote:
Originally Posted by Zerk0o0o0 View Post
Works. Thanks. I will tested but works for now
;)
__________________
Balck is offline
Zerk0o0o0
Member
Join Date: Feb 2010
Old 09-24-2013 , 12:33   Re: Looking for respawn plugin
Reply With Quote #7

Balck, can you add hud_message?
Like a: Respawn is activate: 10, 9, 8.... 3, 2, 1 stop and then Respawn is disabled.
Zerk0o0o0 is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 09-24-2013 , 12:36   Re: Looking for respawn plugin
Reply With Quote #8

Quote:
Originally Posted by Zerk0o0o0 View Post
Balck, can you add hud_message?
Like a: Respawn is activate: 10, 9, 8.... 3, 2, 1 stop and then Respawn is disabled.
Yes but tell me what a position of the hud_msg do you want and the color too
__________________
Balck is offline
Zerk0o0o0
Member
Join Date: Feb 2010
Old 09-24-2013 , 12:41   Re: Looking for respawn plugin
Reply With Quote #9

In top middle of screen. If you can, green color for activate and red for disabled?
Zerk0o0o0 is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 09-26-2013 , 13:38   Re: Looking for respawn plugin
Reply With Quote #10

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
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:38.


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