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

[REQ] BB Player auto respawn on connect!


Post New Thread Reply   
 
Thread Tools Display Modes
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 09-20-2022 , 08:59   Re: [REQ] BB Player auto respawn on connect!
Reply With Quote #11

It's still not working. I had still facing this problem and @Nutu_ basebuilder65 plugin do not respawn BUILDERS when BUILDER connect after PREP TIME!!

Last edited by crystal xtreme; 09-20-2022 at 09:00.
crystal xtreme is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 09-20-2022 , 10:32   Re: [REQ] BB Player auto respawn on connect!
Reply With Quote #12

weird, if you haven't changed that
PHP Code:
public Respawn_Player(id)
{
    
id-=TASK_RESPAWN
    
    
if (!is_user_connected(id))
        return 
PLUGIN_HANDLED
    
    
if (((g_boolCanBuild || g_boolPrepTime) && cs_get_user_team(id) == CS_TEAM_CT) || cs_get_user_team(id) == CS_TEAM_T)
    {
        
ExecuteHamB(Ham_CS_RoundRespawnid)
        
        
//Loop the task until they have successfully spawned
        
if (!g_isAlive[id])
            
set_task(3.0,"Respawn_Human",id+TASK_RESPAWN)
    }
    return 
PLUGIN_HANDLED

It should respawn both zm or builder! or maybe i'm wrong
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 09-20-2022 , 13:55   Re: [REQ] BB Player auto respawn on connect!
Reply With Quote #13

Quote:
Originally Posted by Nutu_ View Post
weird, if you haven't changed that
PHP Code:
public Respawn_Player(id)
{
    
id-=TASK_RESPAWN
    
    
if (!is_user_connected(id))
        return 
PLUGIN_HANDLED
    
    
if (((g_boolCanBuild || g_boolPrepTime) && cs_get_user_team(id) == CS_TEAM_CT) || cs_get_user_team(id) == CS_TEAM_T)
    {
        
ExecuteHamB(Ham_CS_RoundRespawnid)
        
        
//Loop the task until they have successfully spawned
        
if (!g_isAlive[id])
            
set_task(3.0,"Respawn_Human",id+TASK_RESPAWN)
    }
    return 
PLUGIN_HANDLED

It should respawn both zm or builder! or maybe i'm wrong
It's not working. i mentioned it in my reply.
crystal xtreme is offline
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 09-22-2022 , 14:50   Re: [REQ] BB Player auto respawn on connect!
Reply With Quote #14

Can anyone help please?
Attached Files
File Type: sma Get Plugin or Get Source (basebuilder65.sma - 35 views - 83.3 KB)
crystal xtreme is offline
Old 09-22-2022, 15:36
Taha_rajper
This message has been deleted by Taha_rajper.
Taha_rajper
Member
Join Date: Jun 2021
Location: Under The Sea
Old 09-22-2022 , 15:37   Re: [REQ] BB Player auto respawn on connect!
Reply With Quote #15

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>

new iTime

public plugin_init() {
    
register_plugin("Respawn""1.0""Taha_rajper")
    
    
register_event("ResetHUD""newRound""b")
    
register_event"DeathMsg""Hook_Deathmessage""a" );
    
}
public 
newRound(id)
{
    if( 
task_exists1337 ) )
        
remove_task1337 )
    
    
iTime 1999
    set_task
1.0"countdown"1337__"a"15 )
    
    return 
PLUGIN_HANDLED;
}
public 
countdown()
{
    if( 
iTime >= )
    {
        
iTime--
    }
    
    else if( 
iTime == )
    {
        
iTime--
    }
    

public 
Hook_Deathmessage()
{
    new 
victim read_data);
    
    if(
iTime >= 1)
        
set_task(1.0,"Spawn",victim)
    
    return 
PLUGIN_HANDLED
}
public 
Spawn(id)
{
        
ExecuteHamB(Ham_CS_RoundRespawnid);

Taha_rajper is offline
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 09-22-2022 , 15:57   Re: [REQ] BB Player auto respawn on connect!
Reply With Quote #16

Not working.
crystal xtreme 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 10:16.


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