AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to use messages?! (https://forums.alliedmods.net/showthread.php?t=49231)

hlstriker 12-30-2006 02:14

How to use messages?!
 
Hi, I have been wondering for a while how to use the message_begin, write_byte, write_short, message_end, etc...

I don't understand how to know what to do with it all, or where to get the information to know what to set each thing and in what order.

Can somebody help me out here please?

jim_yang 12-30-2006 02:31

Re: How to use messages?!
 
1. search for a plugin called message logging, you can look the parameters of all messages through this.
2. check the amxmodx\scripting\include\message_const.inc in your computer.

hlstriker 12-30-2006 03:44

Re: How to use messages?!
 
Thank you very much :)!

OmgHi 01-13-2007 02:52

Re: How to use messages?!
 
Hey, i need help with this!

I read the message_const and all that, but i still dont quite understand.

What im trying to do is make the screen go black, and fade back to normal, then turn at an angle and go back to normal...

This is my code so far...

Code:

message_begin(MSG_ONE, SVC_INTERMISSION, SVC_ADDANGLE, id)
 write_short(1<<14)
 write_short(1<<14)
 write_short(1<<0)
 write_byte(1)
 write_byte(1)
 write_byte(1)
 write_byte(255)
 message_end()


VEN 01-13-2007 06:23

Re: How to use messages?!
 
You need ScreenFade, not Intermission. There is so many information on this, please search: http://forums.alliedmods.net/search.php

OmgHi 01-16-2007 12:20

Re: How to use messages?!
 
Now i have

Code:
    message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id)     write_short( 1<<20)     write_short( 1<<20)     write_short( 1<<12 )     write_byte(1)     write_byte(1)     write_byte(1)     write_byte(255)     message_end()

And it still doesn't work :+|


All times are GMT -4. The time now is 22:28.

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