AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   message_begin (https://forums.alliedmods.net/showthread.php?t=5566)

Ramirez 09-05-2004 14:52

message_begin
 
Alright, I wanted to start playing around with the message_thing used to make like special effects and stuff...
BUt I can't understand at all o_O
I read al the function documentation on AMXX site and I still can't understand...
Could anyone hook me up with a tutorial or jsut explain the basics here?
thanks :D

Peli 09-05-2004 18:16

What kinda messages?

Twilight Suzuka 09-05-2004 18:23

Messages are very differing. Heres an example of one.

public Flash(id) {
message_begin(MSG_ONE,gMsgScreenFade,{0,0,0}, id)
write_short( 1<<15 )
write_short( 1<<10 )
write_short( 1<<12 )
write_byte( 255 )
write_byte( 255 )
write_byte( 255 )
write_byte( 255 )
message_end()

}

You need to have intimate knowledge of the SDK to know exactly which bytes, shorts, and other things to write. I suggest you look into the SDK before trying it.

Ramirez 09-06-2004 05:31

I did look in the SDK...
But I kinda dont know where to look like(so many stuff in the SDK)
And I just wanna learn the basics and everything...
Syntax...

Votorx 09-06-2004 14:38

Ramirez The thread named "Quick support/help - Misc suggestions" Has a file on there that explains the different message types that can be used, and the parameters needed to initiate them. I doubt that that is all the messages there are but that is a general overview you can begin with. Look at other plugins that use Message_Begin() to understand how to use these functions.


All times are GMT -4. The time now is 17:13.

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