Raised This Month: $ Target: $400
 0% 

Delay, works once!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-26-2006 , 07:56   Re: Delay, works once!
Reply With Quote #1

Put this in amxx.cfg: amx_lncsst 180

60 * 3 = 180
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
xeonn
Junior Member
Join Date: Jun 2006
Old 06-26-2006 , 08:08   Re: Delay, works once!
Reply With Quote #2

Quote:
Originally Posted by v3x
Put this in amxx.cfg: amx_lncsst 180

60 * 3 = 180
The command wont stop:


[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !
[LNCSS] The screenshots has been made !

He's doing that on 1 sec or so :S
xeonn is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-26-2006 , 09:00   Re: Delay, works once!
Reply With Quote #3

I think you want to remove flag "b".
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
xeonn
Junior Member
Join Date: Jun 2006
Old 06-26-2006 , 09:31   Re: Delay, works once!
Reply With Quote #4

Quote:
Originally Posted by Hawk552
I think you want to remove flag "b".
I removed it, but now its not doing anything
Code:
set_task( get_cvar_float("amx_lncsst"), "cmd_ss", id);
xeonn is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-26-2006 , 09:34   Re: Delay, works once!
Reply With Quote #5

it probably executed once and you didn't notice.

Try adding the same thing at the end of the function.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
xeonn
Junior Member
Join Date: Jun 2006
Old 06-26-2006 , 09:38   Re: Delay, works once!
Reply With Quote #6

Quote:
Originally Posted by Hawk552
it probably executed once and you didn't notice.

Try adding the same thing at the end of the function.
Uhm example, i dont understand
xeonn is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-26-2006 , 09:39   Re: Delay, works once!
Reply With Quote #7

set_task( get_cvar_float("amx_lncsst"), "cmd_ss", id, _ , _ , "a", 10);

Set the cvar amx_lncsst to 180 (in amxx.cfg) if you want it to repeat every 3 minutes because 60 * 3 = 180.

I'm off to bed~been up for 3 days.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
xeonn
Junior Member
Join Date: Jun 2006
Old 06-26-2006 , 10:11   Re: Delay, works once!
Reply With Quote #8

Quote:
Originally Posted by v3x
set_task( get_cvar_float("amx_lncsst"), "cmd_ss", id, _ , _ , "a", 10);

Set the cvar amx_lncsst to 180 (in amxx.cfg) if you want it to repeat every 3 minutes because 60 * 3 = 180.

I'm off to bed~been up for 3 days.
Sleepwell, but it didnt work it's creating 10 screenshots, and after the 3 min he doesnt do anything more.
xeonn is offline
3xr
Junior Member
Join Date: Mar 2005
Old 06-26-2006 , 17:01   Re: Delay, works once!
Reply With Quote #9

I am having the same type of issue for a plugin of mine. But I could use set_task, yet Hawk told me its not good to. So I am stuck up with trying to figure it out...

I'd love an example on how to use a timer because the method he gave me does not seem to work.
3xr is offline
BetaX
Member
Join Date: Nov 2005
Old 06-26-2006 , 21:07   Re: Delay, works once!
Reply With Quote #10

Code:
/*
* Latenightcup.nl Screenshot System
* Coded by xeoN
* Contact: [email protected]
*/


#include <cstrike>
#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
    register_plugin("LNC Screenshot","1.0","xeoN")
    register_concmd("amx_lncss","cmd_ss",ADMIN_BAN,"- forces all users to take a screenshot");
    register_concmd("amx_lncsst", "cmd_sst", ADMIN_CVAR, "- make every X seconds a screenshot of every user");
    register_cvar ("LNCCtimer","180");

}

public client_connect(id)
{
     client_print(id, print_console, "[LNCSS] This server supports the Latenightcup Screenshot System (LNCSS).")
     server_print("[LNCSS] This server supports the Latenightcup Screenshot System (LNCSS).")
     return 1
}
public cmd_ss(id)
{
   client_cmd(0,"snapshot");
   return PLUGIN_HANDLED;
}

public cmd_sst()
{
    new timer[256];
    get_cvar_string("LNCCtimer",timer,255);
    new iTimer = str_to_num(timer);
    set_task(iTimer,"cmd_ss",10,_,_,"b");
    
    return PLUGIN_HANDLED;
}
Wot? Not sure if I had to go through all that with the cvar... I hate cvars. :s
BetaX 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 07:59.


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