 |
|
Member
|

05-24-2021
, 14:01
Re: Custom Roundtime
|
#9
|
Quote:
Originally Posted by Celena Luna
It is possible by using MsgRoundTime
PHP Code:
#include <amxmodx>
#define PLUGIN "Timeleft as Roundtime"
#define AUTHOR "AcidoX (idea), Arkshine and joaquimandrade"
#define VERSION "1.2"
new gMsgidShowTimer;
new g_RoundTime = 0;
public plugin_init ()
{
register_plugin( PLUGIN, VERSION, AUTHOR);
register_cvar( "TimeleftRoundtime",VERSION,FCVAR_SERVER|FCVAR_SPONLY )
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 )
{
if(get_timeleft() != 0)
set_msg_arg_int( 1, ARG_SHORT, g_RoundTime += 1); //Just messing around this one if it didn't work
}
public Event_BombDropped ()
{
message_begin( MSG_BROADCAST, gMsgidShowTimer );
message_end();
}
Or you can use Dias "Infinity Module" to set it like in the picture you sent
|
not working
Server mod soccerjam bomb?
|
|
|
|