Raised This Month: $ Target: $400
 0% 

Get roundtime and up it


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 01-08-2013 , 16:32   Re: Get roundtime and up it
Reply With Quote #8

I could buy sma but i just bought amxx because half of price. But he sent me parts of code:
Code:
new Float:fTime = entity_get_float( g_iRoundEndEntity, EV_FL_nextthink );

if( fTime != NO_ROUND_END_TIME )
{
fTime += EXTRA_ROUND_TIME;

message_begin( MSG_BROADCAST, g_iMsgId_RoundTime );
write_short( floatround( fTime - get_gametime( ), floatround_floor ) );
message_end( );

entity_set_float( g_iRoundEndEntity, EV_FL_nextthink, fTime );
}

g_iRoundEndEntity = create_entity( "info_target" );

register_event( "RoundTime", "EventRoundTime", "be" );

g_iMsgId_RoundTime = get_user_msgid( "RoundTime" )

public EventRoundTime( )
{
if( g_bRoundActive && entity_get_float( g_iRoundEndEntity, EV_FL_nextthink ) == NO_ROUND_END_TIME )
{
entity_set_float( g_iRoundEndEntity, EV_FL_nextthink, get_gametime( ) + read_data( 1 ) );
}
__________________
Jhob94 is offline
 



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 13:44.


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