Raised This Month: $ Target: $400
 0% 

im new


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ripiz
Junior Member
Join Date: Mar 2006
Old 03-29-2006 , 08:19   im new
Reply With Quote #1

Hi, and thanks that you read it.
I'm new at AMX scripting so at the moment I just trying to change other plugins so they still work corectly.

Is there a command to make plugin wait like 1 sec ? I mean...
something like auto-jumper, player will just and after 5 sec he will jump again, how to do this ? i need just that wait/sleep/pause


P.S. shorter: how to pause plugin for few sec and then resume it ? it should be automaticaly
Ripiz is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-29-2006 , 08:43  
Reply With Quote #2

this?
Code:
set_task(Float:time, "function", id = 0)
[ --<-@ ] Black Rose is offline
Ripiz
Junior Member
Join Date: Mar 2006
Old 03-29-2006 , 08:47  
Reply With Quote #3

yeh I think .. I'm new so i dont what that is
ir cmopiler successfuly, all i can to test it

if i type 1 as time how much time it will take ?
Ripiz is offline
Timoses
Member
Join Date: Mar 2006
Location: Germany, NRW
Old 03-29-2006 , 08:53  
Reply With Quote #4

You have to put in
Code:
1.0
since it's a Float.
and it is in seconds, I believe..
Timoses is offline
Send a message via ICQ to Timoses Send a message via MSN to Timoses
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-29-2006 , 08:54  
Reply With Quote #5

Quote:
Originally Posted by Timoses
You have to put in
Code:
1.0
since it's a Float.
and it is in seconds, I believe..
exactly

and you would need to replace the "function" with whatever fuction it would trigger after the defined time
[ --<-@ ] Black Rose is offline
Ripiz
Junior Member
Join Date: Mar 2006
Old 03-29-2006 , 09:15  
Reply With Quote #6

i need to continue function ...

if really im changing glow plugins, i want to make player glow and keep changing colors

Code:
	if(equali(arg2,"colorful")){
		client_print(0,print_chat,"User: %s Has started changing colors!!!",plrname)
		set_user_rendering(player,kRenderFxGlowShell,colorful[0],colorful[1],colorful[2],kRenderNormal,16)
		//pause here for 0.2 sec is possible
		set_user_rendering(player,kRenderFxGlowShell,colorful[4],colorful[5],colorful[6],kRenderNormal,16)
		//pause here for 0.2 sec is possible
		set_user_rendering(player,kRenderFxGlowShell,colorful[7],colorful[8],colorful[9],kRenderNormal,16)
		//repeat this all again, again and again
		return PLUGIN_HANDLED
	}
i need to put pause between(im not shore this work is right) color change
Ripiz is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-29-2006 , 09:27  
Reply With Quote #7

Code:
if ( equali(arg2,"colorful") ) {     client_print(0,print_chat,"User: %s Has started changing colors!!!",plrname)     set_task(0.2, "color1", player) } public color1(id) {     set_user_rendering(id,kRenderFxGlowShell,colorful[0],colorful[1],colorful[2],kRenderNormal,16)     set_task(0.2, "color2", id) } public color2(id) {     set_user_rendering(id,kRenderFxGlowShell,colorful[4],colorful[5],colorful[6],kRenderNormal,16)     set_task(0.2, "color3", id) } public color3(id) {     set_user_rendering(player,kRenderFxGlowShell,colorful[7],colorful[8],colorful[9],kRenderNormal,16)     set_task(0.2, "color1", id) }
[ --<-@ ] Black Rose is offline
Ripiz
Junior Member
Join Date: Mar 2006
Old 03-29-2006 , 09:41  
Reply With Quote #8

um..

i know where to put
Code:
if ( equali(arg2,"colorful") ) {     client_print(0,print_chat,"User: %s Has started changing colors!!!",plrname)     set_task(0.2, "color1", player) }
but where to put
Code:
public color1(id) {     set_user_rendering(id,kRenderFxGlowShell,colorful[0],colorful[1],colorful[2],kRenderNormal,16)     set_task(0.2, "color2", id) } public color2(id) {     set_user_rendering(id,kRenderFxGlowShell,colorful[4],colorful[5],colorful[6],kRenderNormal,16)     set_task(0.2, "color3", id) } public color3(id) {     set_user_rendering(player,kRenderFxGlowShell,colorful[7],colorful[8],colorful[9],kRenderNormal,16)     set_task(0.2, "color1", id) }

??
Ripiz is offline
Timoses
Member
Join Date: Mar 2006
Location: Germany, NRW
Old 03-29-2006 , 09:43  
Reply With Quote #9

Just somewhere.. I believe..
Timoses is offline
Send a message via ICQ to Timoses Send a message via MSN to Timoses
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-29-2006 , 10:13  
Reply With Quote #10

anywhere, just not in another function
[ --<-@ ] Black Rose 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 16:29.


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