Raised This Month: $ Target: $400
 0% 

set_hudmessage,set_task and another question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
breaddawson
Senior Member
Join Date: Jul 2004
Location: Beijing,China
Old 10-03-2004 , 10:57   set_hudmessage,set_task and another question
Reply With Quote #1

today it went serveral hours to dive into some plugins written by others

and i have a few questions

I. i began to realized that the native set_hudmessage() is frequently used
i look it up to the amxmodx.inc
and i found this

Quote:
/* Sets format for hudmessage. */
native set_hudmessage(red=200, green=100, blue=0, Float=-1.0, Float:y=0.35, effects=0, Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2,channel=4);
i know the x and the y is to specify the origin of ur hudmessage
but i want to know the bounds of them
sorry for my poor english
i mean that it's a float,so it might be assignd 5.0 or -3.2 or many others
but the number assigned should be limited ,>-10 and <10 ,for instance
then,what's the limit ??

the effects ,the fxtime and the channel means what?
i mean,what can i do with them?

II.set_task is another frequently used function
and i also found some information about it

Quote:
/* 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);
"on specified time",it's good
i'm a little puzzled by the first parameter "Float:time"
does it show the frequncy of u given function called by set_task?
or show another thing?

and what does the "id" mean,what can i do with it?


III.what is the differences between "PLUGIN_HANDLED" and "PLUGIN_CONTINUE"??


then u see all my questions
is there someone kindly give me a hand?
thank u all~
__________________
i'm bread dawson ,a chinese boy
wish u be happy~
breaddawson is offline
Send a message via ICQ to breaddawson Send a message via MSN to breaddawson
 



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 17:15.


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