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

CS:S buytime


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Doulos
AlliedModders Donor
Join Date: Aug 2007
Old 02-11-2015 , 16:18   CS:S buytime
Reply With Quote #1

How can I get the time left in buy time and print a countdown?

I am trying to add "get during buy time only" requirement to a free weapons plugin.

Any help would be appreciated.

Last edited by Doulos; 02-11-2015 at 16:20.
Doulos is offline
Kailo
Senior Member
Join Date: Sep 2014
Location: Moscow, Russia
Old 02-11-2015 , 16:31   Re: CS:S buytime
Reply With Quote #2

Declarete bool:g_CanBuy[MAXPLAYERS + 1] = true; Use FindConVar for hook mp_buytime. Use GetConVarInt for get time. Hook 'round_start' and OnRoundStart{ set timer, duration 'mp_buytime' valve, but u need be convert int to float for this or use GetConVarFloat; g_CanBuy[iterate all players] = true;} In timer end handel just set g_CanBuy[client] = false; In your plugins set check for g_CanBuy.
Kailo is offline
Doulos
AlliedModders Donor
Join Date: Aug 2007
Old 02-11-2015 , 16:52   Re: CS:S buytime
Reply With Quote #3

Thank you for the response, but I guess I wasn't specific enough. I am a user not a coder. I work 60+ hours a week and don't have time to learn SP. I look for plugins to do what I want or if I can't find them I attempt to modify other plugins to suit myself.

I should have asked can someone help me by writing code to do as I said.

I realize you all have lives too and are busy people as well, but it never hurts to ask.

Thanks.

Last edited by Doulos; 02-11-2015 at 17:05.
Doulos is offline
Doulos
AlliedModders Donor
Join Date: Aug 2007
Old 02-11-2015 , 16:52   Re: CS:S buytime
Reply With Quote #4

Or, maybe I also posted this in the wrong place.

Last edited by Doulos; 02-11-2015 at 17:03.
Doulos is offline
Kailo
Senior Member
Join Date: Sep 2014
Location: Moscow, Russia
Old 02-12-2015 , 07:32   Re: CS:S buytime
Reply With Quote #5

Yes, post it in this forum https://forums.alliedmods.net/forumdisplay.php?f=60 or may be moderators move ur topic. And add link to ur free wepon plugin.

Last edited by Kailo; 02-12-2015 at 07:32.
Kailo 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 05:44.


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