Raised This Month: $140 Target: $400
 35% 

[ 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
Check my Aliens vs. Predator: 177.54.156.162:27018

Last edited by CrazY.; 07-20-2018 at 14:50.
CrazY. is offline
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 (100%) [Next Update - 6%]
[MOD]
CS NPC Mod (8%) [Paused]
[APP] Visual Plugin Studio (27%)
[MM]
Lua Engine (37%)

Donate

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
Check my Aliens vs. Predator: 177.54.156.162:27018
CrazY. is offline
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 (100%) [Next Update - 6%]
[MOD]
CS NPC Mod (8%) [Paused]
[APP] Visual Plugin Studio (27%)
[MM]
Lua Engine (37%)

Donate
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 14:01.


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