AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Question about tasks (https://forums.alliedmods.net/showthread.php?t=221648)

lqlqlq 07-24-2013 19:00

Question about tasks
 
I have this:
Code:

public screen(id) {
new name[33]
get_user_name(id, name, 32)
server_cmd( "amx_screen %s 5", name)
}

I need task for "screen" to run only 5 times with 20 seconds interval.

YamiKaitou 07-24-2013 19:36

Re: Question about tasks
 
So create a task that will loop 5 times and execute every 20 seconds. Reading the function header is enough for you to figure this out yourself


All times are GMT -4. The time now is 06:27.

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