AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Time Delay in event of plugin (https://forums.alliedmods.net/showthread.php?t=5435)

AlucarD_fOx 09-01-2004 08:58

Time Delay in event of plugin
 
Hello!!

I have a doubt...
I was converting the plugin killcam and I saw that he has a bug. The screen shot is made when the person dies and she doesn't catch the main scene that would be the blood leaving and the player beginning to fall.
Does have as if it puts a time delay of 0.1 second for example in the plugin, before executing the screenshot command of CS?

Thanks...

Johnny got his gun 09-02-2004 05:02

Use set_task.

AlucarD_fOx 09-02-2004 15:08

Quote:

Originally Posted by Johnny got his gun
Use set_task.

this command received decimal numbers too, type 0.1... Right?

I locate this command before this line of action this snap command?

Code:
. . . set_task 0.1 client_cmd(killer_id,"snapshot") . . .

Thanks...

Johnny got his gun 09-02-2004 17:23

Find interface for commands in the include files:

amxmodx.inc:

Code:
/* Calls function on specified time. * Flags: * "a" - repeat. * "b" - loop task. * "c" - do task on time after a map timeleft. * "d" - do task on time before a map timelimit. */ native set_task(Float:time,const function[],id = 0,parameter[]="",len = 0,flags[]="", repeat = 0);

example:

Code:
somefunction() { set_task(0.5, "anotherfunction") } public anotherfunction() { // do stuff }

AlucarD_fOx 09-03-2004 14:24

Ohh, hhhehe thanks to solve my doubt...

For example, in .inc files have the all variables to use in plugins for I consult in doubt case? Or only in tutorial of Bailopan?

Thanks! :wink:


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

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