AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to delay 2 secs then perform (https://forums.alliedmods.net/showthread.php?t=17888)

Riddick51 09-11-2005 02:32

how to delay 2 secs then perform
 
how do i delay 2 seconds then perform wvictimscr ?
Code:
public func01() { //if the random number is less than 9 { //    delay 2 seconds while player respawns, then perform wvictimscr once}    if (random_num(0,99) < 9) set_task(2.0,"wvictimscr",??????); } public wvictimscr() {    set_hudmessage(255,000,000, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1)    show_hudmessage(victim_id,"Your Cranium g0t Creased by^na High-Velocity Metal Object") }

pdoubleopdawg 09-11-2005 02:44

Uhhh?
Remove the ,???????

teame06 09-11-2005 02:45

set_task(2.0,"wvictimscr");


just like you had it.

Riddick51 09-11-2005 03:01

omg im a retard.

thx guys. :o


All times are GMT -4. The time now is 14:33.

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