AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_msg_block argument "iMessage" (https://forums.alliedmods.net/showthread.php?t=271000)

shirojew 09-03-2015 06:22

set_msg_block argument "iMessage"
 
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?


Arkshine 09-03-2015 06:24

Re: set_msg_block argument "iMessage"
 
get_user_msgid("YourMessagetNameHere")

shirojew 09-03-2015 06:27

Re: set_msg_block argument "iMessage"
 
Quote:

Originally Posted by Arkshine (Post 2339407)
get_user_msgid("YourMessagetNameHere")

Does it returns msgid? If it does, big thanks to you!

HamletEagle 09-03-2015 07:26

Re: set_msg_block argument "iMessage"
 
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.


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

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