Raised This Month: $ Target: $400
 0% 

delay time one round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bengan
Junior Member
Join Date: Aug 2009
Old 12-28-2010 , 15:37   delay time one round
Reply With Quote #1

Hello. I need some help, i just wonder if there is any way to make one item usable one time each round. I will give u one example:

Code:
new const g_property2_name[TOTAL][] =
{
	"",
	"",
	"Interval Between",
	"Interval Between",
	"",
	"",
	"",
	"Interval Between",
	"",
	"",
	"",
	"",
	"",
	"",
	"",
	"",
	"",
	"Delay After Usage",
	"Delay After Usage",
	"Delay After Usage",
	"Delay After Usage"
};

new const g_property2_default_value[TOTAL][] =
{
	"",
	"",
	"0.5",
	"0.5",
	"",
	"",
	"",
	"200",
	"",
	"",
	"",
	"",
	"",
	"",
	"",
	"",
	"",
	"60",
	"60",
	"60",
        "One Round"
As you see the value is inserted as seconds, what i wonder is if there is any value so you can make it usable only once each round.

I need help with the italic selection...

Last edited by bengan; 12-28-2010 at 15:40.
bengan is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 12-28-2010 , 16:28   Re: delay time one round
Reply With Quote #2

They got this magic trick called bools.

new bool:g_Used[33];

when they use the item, make g_Used = true, then on roundstart reset the bool to false again. And if the bool = true, disable the item. If you don't understand what I'm saying, you need to go to suggestions/requests.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
bengan
Junior Member
Join Date: Aug 2009
Old 12-28-2010 , 17:29   Re: delay time one round
Reply With Quote #3

I don't know how to put in new things in a plugin which makes it impossible for me to edit myself.

Although i found alot of "new bool" text in the sma file.
bengan 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 02:08.


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