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
__________________