AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Need Simple Help for 5 lines Code :D (https://forums.alliedmods.net/showthread.php?t=295256)

D3XT3R 03-20-2017 11:57

Need Simple Help for 5 lines Code :D
 
Hi,

this code he has of supply boxes its spawn one time every round and its spawn after Xtime with cvar spawn_time

me wanna make it spawn every Xtime in 1 round mean not spawn one time i want make it spawn every Xtime in the round and thanx =)

PHP Code:

public round_start() 

    if(!
total_presents) return 
    
remove_task(1337
    
set_task(get_pcvar_float(spawn_time),"spawn_random_presents",1337



D3XT3R 03-20-2017 12:00

Re: Need Simple Help for 5 lines Code :D
 
it should be like this or what ?? please help??!
PHP Code:

public round_start()
{
    if (!
total_presents)
    {
        return 
0;
    }
    
remove_task(13370);
    
set_task(get_pcvar_float(spawn_time), "spawn_random_presents"1337""0""0);
    return 
0;



jimaway 03-20-2017 12:04

Re: Need Simple Help for 5 lines Code :D
 
set_task(get_pcvar_float(spawn_time), "spawn_random_presents", 1337, _, _, "b")

D3XT3R 03-20-2017 12:25

Re: Need Simple Help for 5 lines Code :D
 
thanx dude :).


All times are GMT -4. The time now is 17:51.

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