Raised This Month: $ Target: $400
 0% 

Spectator -> CT or T bug


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Hardix
Junior Member
Join Date: Nov 2020
Old 01-22-2023 , 06:07   Spectator -> CT or T bug
Reply With Quote #1

Hello,

I don't know if it's a bug or is just a CS 1.6 thingy but when I connect to server and choose the Spectator Team and I want to move to another team from a command (amx_t or amx_ct) I can't see the HUD and I see only the weapon.

AMX Mod X version 1.9.0.5294, I tried AMX Mod X version 1.8.3 and 1.10 too, same result
Video: https://www.youtube.com/watch?v=UOtQeW_jJoY
Code:
PHP Code:
public cmd_spec(id,level,cid)
{
    if(!
cmd_access(idlevelcid1))
    {
        return 
PLUGIN_HANDLED;
    }

    new 
arg[32], target;
    
read_argv(1arg31);
    
target cmd_target(idargCMDTARGET_NO_BOTS);
    if(!
target) return PLUGIN_HANDLED;

    new 
name[32], targetname[32];
    
get_user_name(idname31);
    
get_user_name(targettargetname31);
    if(
is_user_alive(target))
    
user_silentkill(target);
    
cs_set_user_team(targetCS_TEAM_SPECTATOR);

    return 
PLUGIN_HANDLED;
}

public 
cmd_t(id,level,cid)
{
    if(!
cmd_access(idlevelcid1))
    {
        return 
PLUGIN_HANDLED;
    }

    new 
arg[32], target;
    
read_argv(1arg31);
    
target cmd_target(idargCMDTARGET_NO_BOTS);
    if(!
target) return PLUGIN_HANDLED;

    new 
name[32], targetname[32];
    
get_user_name(idname31);
    
get_user_name(targettargetname31);
    if(
is_user_alive(target))
    
user_silentkill(target);
    
cs_set_user_team(targetCS_TEAM_T);

    return 
PLUGIN_HANDLED;
}

public 
cmd_ct(id,level,cid)
{
    if(!
cmd_access(idlevelcid1))
    {
        return 
PLUGIN_HANDLED;
    }

    new 
arg[32], target;
    
read_argv(1arg31);
    
target cmd_target(idargCMDTARGET_NO_BOTS);
    if(!
target) return PLUGIN_HANDLED;

    new 
name[32], targetname[32];
    
get_user_name(idname31);
    
get_user_name(targettargetname31);
    if(
is_user_alive(target))
    
user_silentkill(target);
    
cs_set_user_team(targetCS_TEAM_CT);

    return 
PLUGIN_HANDLED;

Hardix 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 10:13.


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