AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   delay time one round (https://forums.alliedmods.net/showthread.php?t=146499)

bengan 12-28-2010 15:37

delay time one round
 
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...

GXLZPGX 12-28-2010 16:28

Re: delay time one round
 
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.

bengan 12-28-2010 17:29

Re: delay time one round
 
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.


All times are GMT -4. The time now is 02:08.

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