AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get roundtime and up it (https://forums.alliedmods.net/showthread.php?t=205137)

Jhob94 01-07-2013 08:52

Get roundtime and up it
 
Hi.
Iam doing one shop plugin and i would like to have one item that is add 30 seconds on round. Can someone tell me how i can get roundtime for add 30seconds?

dias 01-07-2013 18:22

Re: Get roundtime and up it
 
As i know: You can't

meTaLiCroSS 01-07-2013 18:41

Re: Get roundtime and up it
 
Quote:

Originally Posted by dias (Post 1869144)
As i know: You can't

Yeah, you said it, "as you know", because it's possible.

https://forums.alliedmods.net/showpo...8&postcount=10

Nice one buddy haha

dias 01-08-2013 04:17

Re: Get roundtime and up it
 
^
- Lol. I am going to tell him "May be orpheu can do it" :)

Jhob94 01-08-2013 10:45

Re: Get roundtime and up it
 
It is possible without orpheu...
I have server nightcrawler and when Nc kill one CT, round time gets more seconds. I havent the sma, i just did bought amxx of that private version so i cant see code for it. But it doesnt requires orpheu...

AngeIII 01-08-2013 11:32

Re: Get roundtime and up it
 
decompile code to see what the fuck he is doing.
also i think they update hud and exec server_cmd to up time

YamiKaitou 01-08-2013 11:58

Re: Get roundtime and up it
 
Quote:

Originally Posted by Jhob94 (Post 1869566)
I havent the sma, i just did bought amxx of that private version so i cant see code for it.

Then go back to the seller and demand the SMA file, you are required to get it as well

Jhob94 01-08-2013 16:32

Re: Get roundtime and up it
 
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 ) );
}


Arkshine 01-08-2013 16:50

Re: Get roundtime and up it
 
It changes only visually (HUD) the round time, not internally. Round time itself is not changed.

Jhob94 01-08-2013 16:56

Re: Get roundtime and up it
 
Hum, but on nc when time finish nc die and is synchronized with that changes... But ok i think i give up of that xD
Will think about other item, thanks for the help.


All times are GMT -4. The time now is 13:44.

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