Raised This Month: $32 Target: $400
 8% 

[respawn at the start of round


Post New Thread Reply   
 
Thread Tools Display Modes
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-27-2019 , 17:31   Re: [respawn at the start of round
Reply With Quote #21

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

#define TASK_RESPAWN 535204

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


public 
Spawn(id
{
    if(
task_exists(id TASK_RESPAWN) || !is_user_alive(id)) return;
    
set_task(1.0"CheckDeads"id TASK_RESPAWN""0"a"5); 


public 
CheckDeads(id

    
id -= TASK_RESPAWN;
    if(
is_user_alive(id) || !is_user_connected(id)) return;
    
    if( (
<= get_user_team(id) <= 2) ) ExecuteHamB(Ham_CS_RoundRespawn,id);

__________________
@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-28-2019 at 08: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-28-2019 , 08:24   Re: [respawn at the start of round
Reply With Quote #22

Quote:
Originally Posted by Natsheh View Post
PHP Code:
#include <amxmodx> 
#include <hamsandwich> 

#define TASK_RESPAWN 535204

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


public 
Spawn(id
{
    if(
task_exists(id TASK_RESPAWN)) return;
    
set_task(1.0"CheckDeads"id TASK_RESPAWN""0"a"5); 


public 
CheckDeads(id

    
id -= TASK_RESPAWN;
    if(
is_user_alive(id) || !is_user_connected(id)) return;
    
    if( (
<= get_user_team(id) <= 2) ) ExecuteHamB(Ham_CS_RoundRespawn,id);

I don't get it . Why not work?

sorry this code didn't work.


amx modx version 1.8.2 and 1.8.3 not working
41aaa41 is offline
C00LSH33P
Member
Join Date: Apr 2013
Location: Meow City
Old 07-17-2019 , 07:04   Re: [respawn at the start of round
Reply With Quote #23

Did valve broke something again with the recent cs update? I'm looking for auto respawn plugin too and none of the newer ones are working. Each plugin I tested are loaded fine but no respawn effect... only this works but it's damn old.
C00LSH33P 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 15:26.


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