Raised This Month: $ Target: $400
 0% 

[ Solved ] message_begin , write_byte ...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Aooka
Veteran Member
Join Date: Aug 2011
Location: Villeurbanne
Old 06-24-2012 , 06:40   [ Solved ] message_begin , write_byte ...
Reply With Quote #1

I did not comment everything that I do not understand otherwise I would comment on each line (lol)

What's the useful to do this ?

Code:
make_ScreenFade(client,duration,holdtime,flags,r,g,b,a) // What is that ? {     message_begin(MSG_ONE,ScreenFade,_,client);     write_short(duration); // duration ?     write_short(holdtime); // holdtime ?     write_short(flags); // Flags ?     write_byte(r); // r ?     write_byte(g); // g ?     write_byte(b); // b = blue ? Why ?     write_byte(a); // a ?     message_end(); }


And what's the useful to do this too ?

Code:
public beacon(id) // What is that ? Why beacon ? lol {     if(cs_get_user_team(id) == CS_TEAM_CT)     {         static origin[3]         get_user_origin(id,origin)         message_begin(MSG_BROADCAST,SVC_TEMPENTITY) // ?         write_byte(TE_BEAMCYLINDER)         write_coord(origin[0])         write_coord(origin[1])         write_coord(origin[2]-20) // Why -20 for the origin[2] ?         write_coord(origin[0])         write_coord(origin[1])         write_coord(origin[2]+200)         write_short(beacon_sprite) // Sprite ?         write_byte(0)         write_byte(1) // Why 1 and not 100000 ?         write_byte(6)         write_byte(2) // And 2 here ?         write_byte(1)           write_byte(0) // And why we do not set write_byte(0) before write_byte(6) for example ?         write_byte(0)         write_byte(250) // And 250 ?         write_byte(200)         write_byte(0) // Why 0 ?         message_end()     }     else     {         static origin[3]         get_user_origin(id,origin)         message_begin(MSG_BROADCAST,SVC_TEMPENTITY)         write_byte(TE_BEAMCYLINDER)         write_coord(origin[0])         write_coord(origin[1])         write_coord(origin[2]-20)         write_coord(origin[0])         write_coord(origin[1])         write_coord(origin[2]+200)         write_short(beacon_sprite)         write_byte(0)           write_byte(1)         write_byte(6)         write_byte(2)         write_byte(1)         write_byte(250)         write_byte(0)         write_byte(0)         write_byte(200)         write_byte(0)         message_end()     }     set_task(1.0,"beacon",id) // Why a task here ? }


I've read and read a lots the funcwiki but I'm completely lost from there. Can someone help me please ?

Thanks It's very important for me to understand that certainly

Ps: I read http://www.amxmodx.org/funcwiki.php?go=func&id=262 , http://www.amxmodx.org/funcwiki.php?go=func&id=264 ... and others
__________________
Pawn ? Useless

Last edited by Aooka; 06-24-2012 at 06:40.
Aooka 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 06:17.


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