AlliedModders

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

Ramirez 12-30-2004 10:52

Messages...
 
Alright, after a long time gone, I just caught up in amxx...
I finally understand messages quite good...
But i've still got a question...
Where exactly should I look in the SDK to find all the effect?
and also, events like:
Code:
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id)     write_short( 15 )     write_short( 15 )     write_short( 12 )     write_byte( 200 ) // red     write_byte( 0 ) // green     write_byte( 0 ) // blue     write_byte( 200 ) // alpha     message_end()
Well, someone showed me this code in a previous thread..
I understand how it works but I just need to know: how did he know what to write where?
I mean.. how can he know how much bytes to write?
For example, I type "meta game" in console and get all messages...
But how do I know what to write for each messages?
Any help would be greatly appreciated :D
And btw, happy new year :wink:

XxAvalanchexX 12-30-2004 13:01

The messages are littereted around the SDK, but some are uncommented and not in other mods. To figure out everything you need to know about a message, check out Damaged Soul's Message Logging.

Ramirez 12-30-2004 14:55

WOw, thanks a lot.
Ill take a look at that plugin.

UFo 12-31-2004 05:01

u2 happy new year :D


All times are GMT -4. The time now is 19:16.

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