AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ H3LP ] SecAmmo (https://forums.alliedmods.net/showthread.php?t=309301)

CrazY. 07-20-2018 14:49

[ H3LP ] SecAmmo
 
Hello, I'm trying to set the secondary ammo icon, but isn't working.

https://i.imgur.com/VeX1Snq.jpg

https://wiki.alliedmods.net/Half-Lif...ts#SecAmmoIcon
https://wiki.alliedmods.net/Half-Lif...nts#SecAmmoVal

Code:
message_begin(MSG_ONE, g_iMsgSecAmmoVal, .player = this) {     write_byte(CS_WEAPONSLOT_PRIMARY);     write_byte(iAmmo); } message_end(); message_begin(MSG_ONE, g_iMsgSecAmmoIcon, .player = this) {     write_string("bucket1"); } message_end();

Ghosted 07-20-2018 14:57

Re: [ H3LP ] SecAmmo
 
I think thats because server-side has not registered this message.
https://github.com/ValveSoftware/hal...lls/player.cpp (REG_USER_MSG)

CrazY. 07-20-2018 15:03

Re: [ H3LP ] SecAmmo
 
Quote:

It is not registered in other mods, but it is still useable though.

Ghosted 07-20-2018 15:05

Re: [ H3LP ] SecAmmo
 
But there's not registered SecAmmoIcon nor SecAmmoVal

DeMNiX 07-21-2018 00:47

Re: [ H3LP ] SecAmmo
 
forgot about this
u can send to client this message, but cant clean it from hud. If client disconnecting, this hud element will stay until moment when game was closed


All times are GMT -4. The time now is 12:14.

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