Raised This Month: $ Target: $400
 0% 

How to use messages?!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 12-30-2006 , 02:14   How to use messages?!
Reply With Quote #1

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?
hlstriker is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 12-30-2006 , 02:31   Re: How to use messages?!
Reply With Quote #2

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.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 12-30-2006 , 03:44   Re: How to use messages?!
Reply With Quote #3

Thank you very much !
hlstriker is offline
OmgHi
Junior Member
Join Date: Jan 2007
Old 01-13-2007 , 02:52   Re: How to use messages?!
Reply With Quote #4

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()
OmgHi is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 01-13-2007 , 06:23   Re: How to use messages?!
Reply With Quote #5

You need ScreenFade, not Intermission. There is so many information on this, please search: http://forums.alliedmods.net/search.php
VEN is offline
OmgHi
Junior Member
Join Date: Jan 2007
Old 01-16-2007 , 12:20   Re: How to use messages?!
Reply With Quote #6

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 :+|
OmgHi is offline
Reply



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 22:28.


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