Raised This Month: $ Target: $400
 0% 

set_msg_block argument "iMessage"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shirojew
Junior Member
Join Date: Aug 2015
Old 09-03-2015 , 06:22   set_msg_block argument "iMessage"
Reply With Quote #1

Hello, lads! I need help with set_msg_block argument number one - "iMessage".

Code:
set_msg_block(114, BLOCK_SET)

114 is message id. Question is where can i find all messages id? I found only this:

All HL engine messages from:
https://wiki.alliedmods.net/Half-Life_1_Engine_Messages

All HL events from:
https://wiki.alliedmods.net/Half-Life_1_Game_Events

But those links does not contains message id 114. Where it comes from?

shirojew is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-03-2015 , 06:24   Re: set_msg_block argument "iMessage"
Reply With Quote #2

get_user_msgid("YourMessagetNameHere")
__________________
Arkshine is offline
shirojew
Junior Member
Join Date: Aug 2015
Old 09-03-2015 , 06:27   Re: set_msg_block argument "iMessage"
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
get_user_msgid("YourMessagetNameHere")
Does it returns msgid? If it does, big thanks to you!
shirojew is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-03-2015 , 07:26   Re: set_msg_block argument "iMessage"
Reply With Quote #4

http://amxmodx.org/api/amxmodx/get_user_msgid
Yes, it return the message index. Also, you should not hardcode their values(114 tells nothing to others), it's unreadable. You should always use get_user_msgid.
__________________
HamletEagle is offline
Reply


Thread Tools
Display Modes

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:15.


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