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

Solved Spec is respawning


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sanimare
Senior Member
Join Date: Sep 2010
Old 02-11-2019 , 05:54   Spec is respawning
Reply With Quote #1

I tried several ways to get into the spec, but this code is respawning me.
How can we avoid that? I need to respawn only ct and tt, without spectators

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

native give_itemindex, const item[] )

public 
plugin_init() 
{
    
register_plugin"auto respawner""50000000""DeathRun Serbia" )
    
    
RegisterHamHam_Killed"player""Smrt_igraca"
    
    
register_clcmd"say /respawn""respawnuj" )
}
public 
client_putinserverid )
{
    
set_task1.2"respawnuj"id )
}
public 
respawnujid )
{
    if( !
is_user_alive(id) || !(CS_TEAM_T <= cs_get_user_team(id) <= CS_TEAM_CT) )
    {
        
ExecuteHamBHam_CS_RoundRespawnid )
        
give_itemid"weapon_knife" )
        
    }
}
public 
Smrt_igracaid )
{
    if( 
is_user_connectedid ) )
    {
        
set_task0.2"respawnuj"id )
    }


Last edited by sanimare; 02-11-2019 at 07:43.
sanimare is offline
 



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 00:31.


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