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

Timeleft as Roundtime


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-07-2009 , 13:40   Re: Timeleft as Roundtime
#11

Yes.
__________________
Arkshine is offline
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 06-07-2009 , 13:47   Re: Timeleft as Roundtime
#12

Thanks guys!
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 06-07-2009 , 13:47   Re: Timeleft as Roundtime
#13

I saw it in Pawn's manual, arkshine.

About this plugin, when a BombDrop message is sent with the 4th arg as 1 (when bomb is planted) the counter dissappears.

I don't know how to correct that (maybe changing some offset value) except for the obvious way of blocking that message (what is not a solution)

Edit:

Here it is:
Quote:
Originally Posted by http://wiki.amxmodx.org/Half-Life_1_Game_Events#BombDrop
Setting the last argument 1, will also trigger the round timer to hide. It also will show the dropped bomb on the Terrorist team's radar in the location specified by the first three arguments.
__________________
joaquimandrade is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-07-2009 , 14:12   Re: Timeleft as Roundtime
#14

Quote:
I saw it in Pawn's manual, arkshine.
Ah you're right. Page 75. Miss that.
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-07-2009 , 14:46   Re: Timeleft as Roundtime
#15

Quote:
Originally Posted by joaquimandrade View Post
I don't know how to correct that (maybe changing some offset value) except for the obvious way of blocking that message (what is not a solution)
register the event with "4=1", and fire a new broadcast RoundTime message ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 06-07-2009 , 15:06   Re: Timeleft as Roundtime
#16

Quote:
Originally Posted by ConnorMcLeod View Post
register the event with "4=1", and fire a new broadcast RoundTime message ?
I tried it before and, if i tested correctly, a RoundTime message doesn't unhide the timer.
__________________
joaquimandrade is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-07-2009 , 15:09   Re: Timeleft as Roundtime
#17

Send message with flag 0? Or BombPickup msg
__________________
xPaw is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 06-07-2009 , 15:18   Re: Timeleft as Roundtime
#18

Quote:
Originally Posted by xPaw View Post
Send message with flag 0? Or BombPickup msg
But then the bomb won't appear in the radar as planted, i guess.
__________________
joaquimandrade is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-07-2009 , 16:15   Re: Timeleft as Roundtime
#19

What about something like :

Code:
#include <amxmodx> new gMsgidShowTimer; public plugin_init () {     register_plugin( "Timeleft as Roundtime", "AcidoX" , "1.0" );         register_message( get_user_msgid( "RoundTime" ),"Event_RoundTime" );     register_event( "BombDrop", "Event_BombDropped", "a", "4=1" );         gMsgidShowTimer = get_user_msgid( "ShowTimer" ); } public Event_RoundTime( const MsgId, const MsgDest, const MsgEnt ) {     set_msg_arg_int( 1, ARG_SHORT, get_timeleft() ); } public Event_BombDropped () {     message_begin( MSG_BROADCAST, gMsgidShowTimer );     message_end(); }
__________________

Last edited by Arkshine; 06-07-2009 at 17:21.
Arkshine is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 06-07-2009 , 17:06   Re: Timeleft as Roundtime
#20

I tested it and it works perfectly
__________________
joaquimandrade is offline
Closed Thread



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 15:18.


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