AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How I can delay the plugin? (https://forums.alliedmods.net/showthread.php?t=209763)

danonix 03-01-2013 13:53

How I can delay the plugin?
 
Hello guys, I have a problem, I don't know how to delay the plugin
Code:

    client_print(0, print_chat, "say --- LIVE ON THREE RESTARTS");
    server_cmd("sv_restart 1");
    /*/ WAIT 2s /*/
    server_cmd("sv_restart 1");
    server_cmd("sv_restart 3");
    client_print(0, print_chat, "[-----------------------LIVE-]");
    client_print(0, print_chat, "[----------------------LIVE--]");

I would like to do it by that way, so as first its doing sv_restart 1, next sv_restart 1 and restart 3, but it's like all comands are being done after starting the plugin. Something like if round restarted, restart again, if round restarted, restart again, if round restarted restart again.

YamiKaitou 03-01-2013 14:34

Re: How I can delay the plugin?
 
Set_task

ConnorMcLeod 03-02-2013 04:23

Re: How I can delay the plugin?
 
Search and put some lo3.cfg file on your server ftp, and from plugin (or better from player console), execute that file.


All times are GMT -4. The time now is 21:36.

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