Raised This Month: $12 Target: $400
 3% 

Time Delay in event of plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AlucarD_fOx
Member
Join Date: Jul 2004
Location: Araraquara, SP - Bra
Old 09-01-2004 , 08:58   Time Delay in event of plugin
Reply With Quote #1

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...
__________________
Alu bR

[-.THC.-] ReD L


Avante Madrid, con Robinho en equipo teremos show en Bernabeu!!!

Araraquara, SP - Brazil


thc-phk.servecounterstrike.com:27016

Open in weekends after 21:00 hrs of Saturday. Come to play with us!
AlucarD_fOx is offline
Send a message via ICQ to AlucarD_fOx Send a message via MSN to AlucarD_fOx
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 09-02-2004 , 05:02  
Reply With Quote #2

Use set_task.
Johnny got his gun is offline
AlucarD_fOx
Member
Join Date: Jul 2004
Location: Araraquara, SP - Bra
Old 09-02-2004 , 15:08  
Reply With Quote #3

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...
__________________
Alu bR

[-.THC.-] ReD L


Avante Madrid, con Robinho en equipo teremos show en Bernabeu!!!

Araraquara, SP - Brazil


thc-phk.servecounterstrike.com:27016

Open in weekends after 21:00 hrs of Saturday. Come to play with us!
AlucarD_fOx is offline
Send a message via ICQ to AlucarD_fOx Send a message via MSN to AlucarD_fOx
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 09-02-2004 , 17:23  
Reply With Quote #4

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 }
Johnny got his gun is offline
AlucarD_fOx
Member
Join Date: Jul 2004
Location: Araraquara, SP - Bra
Old 09-03-2004 , 14:24  
Reply With Quote #5

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!
__________________
Alu bR

[-.THC.-] ReD L


Avante Madrid, con Robinho en equipo teremos show en Bernabeu!!!

Araraquara, SP - Brazil


thc-phk.servecounterstrike.com:27016

Open in weekends after 21:00 hrs of Saturday. Come to play with us!
AlucarD_fOx is offline
Send a message via ICQ to AlucarD_fOx Send a message via MSN to AlucarD_fOx
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 05:32.


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