Raised This Month: $ Target: $400
 0% 

How I can delay the plugin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
danonix
Senior Member
Join Date: Dec 2012
Old 03-01-2013 , 13:53   How I can delay the plugin?
Reply With Quote #1

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.

Last edited by danonix; 03-01-2013 at 13:53.
danonix is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-01-2013 , 14:34   Re: How I can delay the plugin?
Reply With Quote #2

Set_task
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-02-2013 , 04:23   Re: How I can delay the plugin?
Reply With Quote #3

Search and put some lo3.cfg file on your server ftp, and from plugin (or better from player console), execute that file.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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