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

[respawn at the start of round


Post New Thread Reply   
 
Thread Tools Display Modes
41aaa41
Member
Join Date: Aug 2011
Location: KOCAELİ / TURKEY
Old 06-25-2019 , 04:02   Re: [respawn at the start of round
Reply With Quote #11

Quote:
Originally Posted by edon1337 View Post
The game itself does that when a new round begins.
no

Quote:
Originally Posted by ZaX View Post
But not for players who die in the start because of a map bug or something else.
I agree .Thx Bro

Code:
glad you understand me
41aaa41 is offline
41aaa41
Member
Join Date: Aug 2011
Location: KOCAELİ / TURKEY
Old 06-25-2019 , 10:28   Re: [respawn at the start of round
Reply With Quote #12

up ? PLS HELP ME .....
41aaa41 is offline
thEsp
BANNED
Join Date: Aug 2017
Old 06-25-2019 , 10:34   Re: [respawn at the start of round
Reply With Quote #13

Stop bumping without waiting 14 days!
thEsp is offline
41aaa41
Member
Join Date: Aug 2011
Location: KOCAELİ / TURKEY
Old 06-25-2019 , 14:07   Re: [respawn at the start of round
Reply With Quote #14

Sorry I didn't know that.
I read the forum rules but I didn't see what you said
41aaa41 is offline
thEsp
BANNED
Join Date: Aug 2017
Old 06-25-2019 , 14:14   Re: [respawn at the start of round
Reply With Quote #15

thEsp is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 06-26-2019 , 04:09   Re: [respawn at the start of round
Reply With Quote #16

Try [UNTESTED]

PHP Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init(){
    
register_plugin("RESPAWN""1.0""_");    
    
RegisterHam(Ham_Spawn"player""Spawn"1);            
}

public 
Spawn(id)
{
    new 
data[1]
    
data[0] = id
    set_task
(1.0"CheckDeads"_data1"a"5);
}

public 
CheckDeads(data[])
{
    new 
id data[0]
    if(!
is_user_alive(id))
        
ExecuteHamB(Ham_CS_RoundRespawn,id)

instinctpt1 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-26-2019 , 06:41   Re: [respawn at the start of round
Reply With Quote #17

Check if task isn't actived otherwise it will be executed over and over when player respawn
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 06-26-2019 at 06:43.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
41aaa41
Member
Join Date: Aug 2011
Location: KOCAELİ / TURKEY
Old 06-27-2019 , 03:58   Re: [respawn at the start of round
Reply With Quote #18

Quote:
Originally Posted by Natsheh View Post
Check if task isn't actived otherwise it will be executed over and over when player respawn
not working correctly
When I log on to the server, I come to life in the spec team
41aaa41 is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 06-27-2019 , 14:51   Re: [respawn at the start of round
Reply With Quote #19

Code:
#include <amxmodx>
#include <hamsandwich>
 
#define TASK_EXIST   3462

new auto_respawn, respawn_time;
 
public plugin_init()
{
        register_logevent("Round_Start", 2, "1=Round_Start");
       
        RegisterHam(Ham_Killed, "player", "fw_PlayerKilled", 0);

        auto_respawn = register_cvar("amx_respawn_auto", "1");
        respawn_time = register_cvar("amx_respawn_time", "5.0");
}
 
public Round_Start()
{
        if (!get_pcvar_num(auto_respawn))
                return PLUGIN_HANDLED;
       
        set_task(float(get_pcvar_num(respawn_time)), "Respawn_task", TASK_EXIST);
        return PLUGIN_CONTINUE;
}
 
public fw_PlayerKilled(id)
{
        if (task_exists(TASK_EXIST))
                ExecuteHamB(Ham_CS_RoundRespawn, id);
}
 
public Respawn_task(id)
{
        remove_task(TASK_EXIST);
}
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
41aaa41
Member
Join Date: Aug 2011
Location: KOCAELİ / TURKEY
Old 06-27-2019 , 17:17   Re: [respawn at the start of round
Reply With Quote #20

Dear Sir / Madam Sorry, the code you gave does not work.

I don't understand why it doesn't work

bramen / bro sorry to bother you
41aaa41 is offline
Reply


Thread Tools
Display Modes

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 05:11.


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