View Single Post
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