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

No bomb icon in scoreboard.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 04-26-2008 , 18:01   No bomb icon in scoreboard.
Reply With Quote #1

Hi!
I have a plugin running on my hns server that do so T drop the bomb.
But the bomb icon in scoreboard still shows..
Is there any way to remove it?
LaineN is offline
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 04-26-2008 , 18:39   Re: No bomb icon in scoreboard.
Reply With Quote #2

Is bomb game_player_equip? If its i would remove it, cuz then you don't get bomb so no icon will be showed.

PHP Code:
public plugin_init()
{
        
remove_entity_name ("game_player_equip"); 

Im not sure if it works tho..
[X]-RayCat is offline
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 04-27-2008 , 05:34   Re: No bomb icon in scoreboard.
Reply With Quote #3

Quote:
Originally Posted by [X]-RayCat View Post
Is bomb game_player_equip? If its i would remove it, cuz then you don't get bomb so no icon will be showed.

PHP Code:
public plugin_init()
{
        
remove_entity_name ("game_player_equip"); 

Im not sure if it works tho..
What shall I do with the code?
LaineN is offline
rudle
BANNED
Join Date: Mar 2008
Location: About to be sent to bant
Old 04-27-2008 , 07:17   Re: No bomb icon in scoreboard.
Reply With Quote #4

compile it lol
PHP Code:
#include <amxmodx>

public plugin_init()
{
        
remove_entity_name ("game_player_equip"); 

rudle is offline
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 04-27-2008 , 07:29   Re: No bomb icon in scoreboard.
Reply With Quote #5

FYI Rudle it requires engine module.
__________________
atomen is offline
Send a message via MSN to atomen
Old 04-27-2008, 08:36
ConnorMcLeod
This message has been deleted by ConnorMcLeod.
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 04-27-2008 , 14:27   Re: No bomb icon in scoreboard.
Reply With Quote #6

Thx shall test..
LaineN is offline
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 04-27-2008 , 16:07   Re: No bomb icon in scoreboard.
Reply With Quote #7

Quote:
Originally Posted by connorr View Post
PHP Code:
#include <amxmodx>

#define SCOREATTRIB_BOMB            (1<<1)

public plugin_init()
{
    
register_plugin("No Bomb in Scorboard""1.0""ConnorMcLeod")

    
register_message(get_user_msgid("ScoreAttrib"), "Message_ScoreAttrib")
}

public 
Message_ScoreAttrib()
{
    new 
iFlags get_msg_arg_int(2)
    if( 
iFlags SCOREATTRIB_BOMB )
    {
        
iFlags ~= SCOREATTRIB_BOMB
        set_msg_arg_int
(20iFlags)
    }

Cant compile...

Warning: Expression has no effect on line 17
Error: Expected token: ";", but found "~" on line 17
Error: Invalid expression, assumed zero on line 17
Warning: Expression has no effect on line 17

2 Errors.
LaineN is offline
rudle
BANNED
Join Date: Mar 2008
Location: About to be sent to bant
Old 04-27-2008 , 16:25   Re: No bomb icon in scoreboard.
Reply With Quote #8

iFlags ~= SCOREATTRIB_BOMB should be iFlags == SCOREATTRIB_BOMB
rudle is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-27-2008 , 16:36   Re: No bomb icon in scoreboard.
Reply With Quote #9

Try this :

PHP Code:
#include <amxmodx>

#define SCOREATTRIB_BOMB            (1<<1)

public plugin_init()
{
    
register_plugin("No Bomb in Scorboard""1.0""ConnorMcLeod")

    
register_message(get_user_msgid("ScoreAttrib"), "Message_ScoreAttrib")
}

public 
Message_ScoreAttrib()
{
    new 
iFlags get_msg_arg_int(2)
    if( 
iFlags SCOREATTRIB_BOMB )
    {
        
iFlags &= ~SCOREATTRIB_BOMB
        set_msg_arg_int
(20iFlags)
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-08-2009 , 14:26   Re: No bomb icon in scoreboard.
Reply With Quote #10

Bump. This thread's title is about removing bomb's icon. I haven't managed to do that, so maybe someone will help me.
This is what I got.

Code:
#define SCOREATTRIB_BOMB (1<<1)   public plugin_init() {     register_message(get_user_msgid("ScoreAttrib"), "Message_ScoreAttrib")       RegisterHam(Ham_AddPlayerItem, "player", "AddPlayerItem_Player_Pre"); }   public Message_ScoreAttrib() {     new iFlags = get_msg_arg_int(2)     if( iFlags & SCOREATTRIB_BOMB )     {         iFlags &= ~SCOREATTRIB_BOMB         set_msg_arg_int(2, 0, iFlags)     } }   public AddPlayerItem_Player_Pre(Client, Weapon) {         if (!is_user_alive(Client))                 return HAM_IGNORED;           new ClassName[2];         pev(Weapon, pev_classname, ClassName, 1);           if (ClassName[0] != 'w')                 return HAM_IGNORED;           new GetWeapon = get_pdata_int(Weapon, 43, 4);           if (GetWeapon != CSW_GLOCK18 && GetWeapon != CSW_C4)                 return HAM_IGNORED;           set_pev(Weapon, pev_flags, pev(Weapon, pev_flags) | FL_KILLME);         SetHamReturnInteger(0);           return HAM_SUPERCEDE; }
The C4 is completely removed but the icon is still there and I can't manage to remove it. Help is appreciated. ^^
__________________
hleV is offline
Old 03-08-2009, 14:55
ConnorMcLeod
This message has been deleted by ConnorMcLeod. Reason: forum lag
Reply



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:02.


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