Raised This Month: $12 Target: $400
 3% 

show all players in scoreboard of team terrorist


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
666
Senior Member
Join Date: Mar 2015
Old 03-27-2020 , 12:49   show all players in scoreboard of team terrorist
Reply With Quote #1

I tried with this code that I saw made of bugsy, it works well it shows all the CT players in the TERRORIST team on the scoreboard, but here comes the problem to the CT players it sets the TERRORIST model and it is what I don't want

PHP Code:
#include <amxmodx>

public plugin_init() 
{
    
register_messageget_user_msgid"TeamInfo" ) , "TeamInfo" );
}

public 
TeamInfo()
{
     
set_msg_arg_string"TERRORIST" );

__________________
666 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 03-27-2020 , 13:00   Re: show all players in scoreboard of team terrorist
Reply With Quote #2

Try this

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

public plugin_init() 
{
    
register_messageget_user_msgid"TeamInfo" ) , "TeamInfo" );
}

public 
TeamInfo()
{
    new 
iPlayers[32], iNum;
    
get_players(iPlayersiNum"ae""TERRORIST");
    
    
set_msg_arg_string"TERRORIST" );
    
    for(new 
iiNumi++)
    {
        
cs_reset_user_model(iPlayers[i]);
    }

__________________

Last edited by Napoleon_be; 03-27-2020 at 13:00.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
666
Senior Member
Join Date: Mar 2015
Old 03-27-2020 , 13:48   Re: show all players in scoreboard of team terrorist
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
Try this

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

public plugin_init() 
{
    
register_messageget_user_msgid"TeamInfo" ) , "TeamInfo" );
}

public 
TeamInfo()
{
    new 
iPlayers[32], iNum;
    
get_players(iPlayersiNum"ae""TERRORIST");
    
    
set_msg_arg_string"TERRORIST" );
    
    for(new 
iiNumi++)
    {
        
cs_reset_user_model(iPlayers[i]);
    }

it had no effect :/
__________________
666 is offline
666
Senior Member
Join Date: Mar 2015
Old 03-29-2020 , 13:44   Re: show all players in scoreboard of team terrorist
Reply With Quote #4

I want to do it once they enter any team. I made this code. I do not know if it's ok.

PHP Code:
#include <amxmodx>

public plugin_init() 
{
    
register_plugin("1","2","3");
    
    
register_message(get_user_msgid("TeamInfo"),"TeamInfo");
}

public 
TeamInfo()
{
    new 
id get_msg_arg_int(1);
    
    if(!(
<= get_user_team(id) <= 2))
        return 
PLUGIN_HANDLED;
    
    
set_msg_arg_string(2,"TERRORIST");
    
    return 
PLUGIN_CONTINUE;

__________________
666 is offline
Reply


Thread Tools
Display Modes

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 11:24.


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