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

Set The Bomb Defuse Time


Post New Thread Reply   
 
Thread Tools Display Modes
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 02-06-2014 , 08:52   Re: Set The Bomb Defuse Time
Reply With Quote #11

Quote:
Originally Posted by Arkshine View Post
The following method avoids duplicated messages and should support spectator.
It doesn't support spectator.
Spectators still see the old bar time (5 sec with defuse and 10 sec without defuse).
Can you fix it?

Last edited by guipatinador; 02-06-2014 at 08:53.
guipatinador is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 04-02-2016 , 05:25   Re: Set The Bomb Defuse Time
Reply With Quote #12

Bumb.

Can someone fix what guipatinador said?
Syturi0 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-02-2016 , 10:32   Re: Set The Bomb Defuse Time
Reply With Quote #13

Try to replace

Code:
if (IsBombDefusing(msgEntity))
with

Code:
if (IsBombDefusing(msgEntity) || (pev(msgEntity, pev_iuser1) && IsBombDefusing(msgEntity = pev(msgEntity, pev_iuser2))))
__________________
Arkshine is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 04-02-2016 , 10:41   Re: Set The Bomb Defuse Time
Reply With Quote #14

Quote:
Originally Posted by Arkshine View Post
Try to replace

Code:
if (IsBombDefusing(msgEntity))
with

Code:
if (IsBombDefusing(msgEntity) || (pev(msgEntity, pev_iuser1) && IsBombDefusing(msgEntity = pev(msgEntity, pev_iuser2))))
Damn i wasted 30mins trying to figure it out with a diffrent method...
PHP Code:
if(IsBombDefusing(msgEntity))
    {
        new 
iPlayers[32], iNum
        get_players
(iPlayersiNum"ch")

        for(new 
iiNumi++)
        {
            
message_begin(MSG_ONE_UNRELIABLEMessageBarTime, .player=iPlayers[i])
            
write_short(5
            
message_end()
        }
    } 
Yours work perfectly, ty.
Syturi0 is offline
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 23:55.


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