AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Crowbar (https://forums.alliedmods.net/showthread.php?t=173924)

KamiN 12-12-2011 15:44

Crowbar
 
1 Attachment(s)
Why it dont gives a crowbar for random T after 5sec?? =/

Ex1ne 12-17-2011 16:32

Re: Crowbar
 
To be honest, i have no idea, but i think it's

Code:

        if(get_pcvar_num(cvar_crowbar))        set_task(5.0, "random_crowbar")
}

:arrow:
Code:

        if(get_pcvar_num(cvar_crowbar))
        {
                set_task(5.0, "random_crowbar")
        }
}


Or it's something with the if(get_pcvar_num(cvar_crowbar)) , maybe
if(get_pcvar_num(cvar_crowbar)1) ? I'm clueless XD

Ex1ne 12-19-2011 11:03

Re: Crowbar
 
PHP Code:


    
if(get_pcvar_num(cvar_crowbar))
    {
        
set_task(5.0"random_crowbar")
    } 

:arrow:
PHP Code:


    
if(get_pcvar_num("cvar_crowbar") == 1)
    {
        
set_task(5.0"random_crowbar")
    } 

If the last one didn't work, try this.


All times are GMT -4. The time now is 20:54.

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