Raised This Month: $90 Target: $400
 22% 

[ H3LP ] SecAmmo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-20-2018 , 15:49   [ H3LP ] SecAmmo
Reply With Quote #1

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



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();
__________________
Accepting private $$$ plugins requests.

@Steam: crazy770
@Discord: CrazY.#5317

Aliens vs. Predator Server: 74.91.116.75:27015

Website | Channel | AvP on Discord


Last edited by CrazY.; 07-20-2018 at 15:50.
CrazY. is online now
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-20-2018 , 15:57   Re: [ H3LP ] SecAmmo
Reply With Quote #2

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

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)

Last edited by Ghosted; 07-20-2018 at 15:58.
Ghosted is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-20-2018 , 16:03   Re: [ H3LP ] SecAmmo
Reply With Quote #3

Quote:
It is not registered in other mods, but it is still useable though.
__________________
Accepting private $$$ plugins requests.

@Steam: crazy770
@Discord: CrazY.#5317

Aliens vs. Predator Server: 74.91.116.75:27015

Website | Channel | AvP on Discord

CrazY. is online now
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-20-2018 , 16:05   Re: [ H3LP ] SecAmmo
Reply With Quote #4

But there's not registered SecAmmoIcon nor SecAmmoVal
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)
Ghosted is offline
DeMNiX
Senior Member
Join Date: Nov 2011
Location: Russia
Old 07-21-2018 , 01:47   Re: [ H3LP ] SecAmmo
Reply With Quote #5

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
__________________
ZP plugins creating for $
contacts:
Telegram: @DeMNiX
VK: /sbalburov
DeMNiX 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 19:15.


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