Raised This Month: $ Target: $400
 0% 

Get roundtime and up it


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 01-07-2013 , 08:52   Get roundtime and up it
Reply With Quote #1

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?
__________________
Jhob94 is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 01-07-2013 , 18:22   Re: Get roundtime and up it
Reply With Quote #2

As i know: You can't
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 01-07-2013 , 18:41   Re: Get roundtime and up it
Reply With Quote #3

Quote:
Originally Posted by dias View Post
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
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 01-08-2013 , 04:17   Re: Get roundtime and up it
Reply With Quote #4

^
- Lol. I am going to tell him "May be orpheu can do it"
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 01-08-2013 , 10:45   Re: Get roundtime and up it
Reply With Quote #5

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...
__________________
Jhob94 is offline
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 01-08-2013 , 11:32   Re: Get roundtime and up it
Reply With Quote #6

decompile code to see what the fuck he is doing.
also i think they update hud and exec server_cmd to up time
__________________
skype: pavle_ivanof
-=ThQ=-
PRIVATE SUPPORT = PAID SUPPORT
AngeIII is offline
Send a message via Skype™ to AngeIII
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-08-2013 , 11:58   Re: Get roundtime and up it
Reply With Quote #7

Quote:
Originally Posted by Jhob94 View Post
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
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
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
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-08-2013 , 16:50   Re: Get roundtime and up it
Reply With Quote #9

It changes only visually (HUD) the round time, not internally. Round time itself is not changed.
__________________

Last edited by Arkshine; 01-08-2013 at 16:51.
Arkshine is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 01-08-2013 , 16:56   Re: Get roundtime and up it
Reply With Quote #10

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


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