Thread: My command.
View Single Post
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-27-2008 , 07:08   Re: My command.
Reply With Quote #14

PHP Code:
public Cmd_Respawnid )
{
    if( !
get_pcvar_nump_On ) )
    {
        
client_printidprint_chat"Manual Respawn is off!" );
        return 
PLUGIN_HANDLED;
    }
    
    new 
limit;
    if( ++
g_iRespawnCountid ] > ( limit get_pcvar_nump_Limit ) ) )
    {
        
client_printidprint_chat"You have respawned yourself too much. Wait to new round." );
        return 
PLUGIN_HANDLED;
    }
    
    if( !
is_user_aliveid ) )
    {
        new 
name[32]
        
get_user_name(id,name,31)    
        
ExecuteHamBHam_CS_RoundRespawnid );
        
client_printidprint_chat"%s use Manual Respawn.%d respawn left.", ( name,limit g_iRespawnCountid ] ) );
  
        
give_item(id,"weapon_mp5navy")
        
give_item(id,"ammo_9mm")
        
give_item(id,"ammo_9mm")
        return 
PLUGIN_CONTINUE;
    } else {
        
client_printidprint_chat"You must be dead to acces Manual Respawn." );
        return 
PLUGIN_CONTINUE;
    }
    
    return 
PLUGIN_CONTINUE;

__________________
xPaw is offline