Raised This Month: $ Target: $400
 0% 

write_short()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 11-05-2006 , 14:45   write_short()
Reply With Quote #1

Ok, so i have this script... but i don't understand these write_short. I've tested some different values with various results.
Can i make them more logically? If so, can someone explain how? Lets say I want the message to hold for 13 seconds... what would i type in at "holdtime" to make it last that long?
Code:
    message_begin(MSG_BROADCAST ,SVC_TEMPENTITY, {0,0,0}, id)     write_byte(TE_TEXTMESSAGE)     write_byte(-1)     write_short(1<<10)  // X     write_short(1<<12)  // Y     write_byte(0)     write_byte(255)     write_byte(0)     write_byte(0)     write_byte(255)     write_byte(0)     write_byte(0)     write_byte(0)     write_byte(255)     write_short(1<<1)   // Fadein     write_short(1<<1)   // Fadeout     write_short(1<<10)  // Hold     write_string("Text")     message_end()

Last edited by [ --<-@ ] Black Rose; 11-05-2006 at 15:31.
[ --<-@ ] Black Rose is offline
 



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 04:59.


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