Raised This Month: $ Target: $400
 0% 

How should be, instead of UNIT_SECOND, UNIT_MILISECOND or somethin' like that


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Speed!
BANNED
Join Date: Jan 2009
Old 02-13-2009 , 21:11   How should be, instead of UNIT_SECOND, UNIT_MILISECOND or somethin' like that
Reply With Quote #1

...
Speed! is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 02-13-2009 , 23:05   Re: How should be, instead of UNIT_SECOND, UNIT_MILISECOND or somethin' like that
Reply With Quote #2

Best clarify what you're asking before I come back to this thread tomorrow morning or it's getting trashed and you're getting a severe talking to.
Brad is offline
Speed!
BANNED
Join Date: Jan 2009
Old 02-13-2009 , 23:43   Re: How should be, instead of UNIT_SECOND, UNIT_MILISECOND or somethin' like that
Reply With Quote #3

Quote:
Originally Posted by Brad View Post
Best clarify what you're asking before I come back to this thread tomorrow morning or it's getting trashed and you're getting a severe talking to.
i mean, when you use write_short¡, you use them like this when you wanna write time: write_short(UNIT_SECOND*1)
how should i do for milliseconds?
Speed! is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 02-14-2009 , 00:03   Re: How should be, instead of UNIT_SECOND, UNIT_MILISECOND or somethin' like that
Reply With Quote #4

Quote:
Originally Posted by Speed! View Post
i mean, when you use write_short¡, you use them like this when you wanna write time: write_short(UNIT_SECOND*1)
how should i do for milliseconds?
If the message descriptions says seconds then 1 = 1s. There is no such thing as multiple units. If the message asks for milliseconds, then add 1000 for each second (mili=1000, milisecond=1s/1000), if it asks for seconds then you can't use split seconds at all.
__________________

Community / No support through PM
danielkza is offline
Speed!
BANNED
Join Date: Jan 2009
Old 02-14-2009 , 00:27   Re: How should be, instead of UNIT_SECOND, UNIT_MILISECOND or somethin' like that
Reply With Quote #5

i remember seeing at instead of UNIT_SECOND*x using something' like 340<<4666 :S
Speed! is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 02-14-2009 , 00:45   Re: How should be, instead of UNIT_SECOND, UNIT_MILISECOND or somethin' like that
Reply With Quote #6

Quote:
Originally Posted by Speed! View Post
i remember seeing at instead of UNIT_SECOND*x using something' like 340<<4666 :S
I think ScreenFade has special format for the time, but I'm also pretty sure there is a note on it's description here, as all arguments for all the other messages too.
__________________

Community / No support through PM
danielkza is offline
Speed!
BANNED
Join Date: Jan 2009
Old 02-14-2009 , 10:06   Re: How should be, instead of UNIT_SECOND, UNIT_MILISECOND or somethin' like that
Reply With Quote #7

Ok I go to the point. How to make a screen tint that lasts 0.2 secs?
Speed! is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 02-14-2009 , 10:18   Re: How should be, instead of UNIT_SECOND, UNIT_MILISECOND or somethin' like that
Reply With Quote #8

PHP Code:
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("ScreenFade"), _,id)
    
write_short((1<<12)) 
    
write_short(floatround((1<<12)*0.2)
    
write_short(0x0000
    
write_byte(0// r
    
write_byte(200// g
    
write_byte(0// b
    
write_byte(60// alpha
    
message_end() 
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor 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 17:06.


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