Raised This Month: $404 Target: $400
 101% 

[ H3LP ] SecAmmo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: Brazil 🇧🇷
Old 07-20-2018 , 14: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();
__________________
Working with $$$ paid plugins. Contact below (ONLY FOR NEGOTIATIONS)
  • Skype: crazy.770
  • Steam: crazy770
  • Discord: CrazY.#5317
Feel free to check my work at https://conceptstrike.blogspot.com

Check my Aliens vs. Predator: currently offline

Last edited by CrazY.; 07-20-2018 at 14:50.
CrazY. is online now
Ghosted
Senior Member
Join Date: Apr 2015
Location: Georgia
Old 07-20-2018 , 14: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.6.3 (Report )(1.7 - 81%)
[MM] MetaMod-C V0.99B (Report )(1.0 - 43%)
Base Builder Module Vote For It
( Donate) ( Steam)

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

Quote:
It is not registered in other mods, but it is still useable though.
__________________
Working with $$$ paid plugins. Contact below (ONLY FOR NEGOTIATIONS)
  • Skype: crazy.770
  • Steam: crazy770
  • Discord: CrazY.#5317
Feel free to check my work at https://conceptstrike.blogspot.com

Check my Aliens vs. Predator: currently offline
CrazY. is online now
Ghosted
Senior Member
Join Date: Apr 2015
Location: Georgia
Old 07-20-2018 , 15:05   Re: [ H3LP ] SecAmmo
Reply With Quote #4

But there's not registered SecAmmoIcon nor SecAmmoVal
__________________

[MOD] CS Weapon Mod V1.6.3 (Report )(1.7 - 81%)
[MM] MetaMod-C V0.99B (Report )(1.0 - 43%)
Base Builder Module Vote For It
( Donate) ( Steam)
Ghosted is offline
DeMNiX
Senior Member
Join Date: Nov 2011
Location: Russia
Old 07-21-2018 , 00: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 16:43.


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