Raised This Month: $ Target: $400
 0% 

[HELP] Weapons Hud Info !


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 12-15-2015 , 05:15   [HELP] Weapons Hud Info !
Reply With Quote #1

Hi !

How do I make the client see the hud message when used a particular weapon?


I tried this ! it works but I want to disappear the hud message when uses another weapon

Is there another way to do this?

Code:
#include <amxmodx> public plugin_init() {     register_clcmd( "weapon_tripmine", "hud_info1" )     register_clcmd( "weapon_357", "hud_info2" )     register_clcmd( "weapon_crossbow", "hud_info3" )     register_clcmd( "weapon_gauss", "hud_info4" )     register_clcmd( "weapon_hornetgun", "hud_info5" )     register_clcmd( "weapon_rpg", "hud_info6" )     register_clcmd( "weapon_snark", "hud_info7" )     register_clcmd( "weapon_9mmAR", "hud_info8" )     register_clcmd( "weapon_crowbar", "hud_info9" )     register_clcmd( "weapon_glock", "hud_info10" )     register_clcmd( "weapon_mp5", "hud_info11" )     register_clcmd( "weapon_handgrenade", "hud_info12" )     register_clcmd( "weapon_egon", "hud_info13" )     register_clcmd( "weapon_shotgun", "hud_info14" )     register_clcmd( "weapon_9mmhandgun", "hud_info15" )         register_event("DeathMsg", "death_event", "a") } public hud_info1(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "Weapon Tripmine^nUse the following Buttons:^n1: MOUSE2 = Laser^n2: E + MOUSE1 = Freeze^n3: E + MOUSE2 = Flash^n4: R + MOUSE2 = Reverse^n5: R + MOUSE1 = Teleport") } public hud_info2(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "") } public hud_info3(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "") } public hud_info4(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "") } public hud_info5(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "") } public hud_info6(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "") } public hud_info7(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "") } public hud_info8(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "") } public hud_info9(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "") } public hud_info10(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "") } public hud_info11(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "") } public hud_info12(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "") } public hud_info13(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "") } public hud_info14(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "") } public hud_info15(id) {     set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)     show_hudmessage(id, "") } public death_event() {   new id = read_data(2)   if(is_user_connected(id))   {       set_hudmessage(102, 102, 32, 0.0, 0.06, 2, 7.0, 10.0, 0.1, 0.1, 1)       show_hudmessage(id, "")   } }
__________________

Last edited by abdobiskra; 12-15-2015 at 05:17.
abdobiskra is offline
Send a message via Skype™ to abdobiskra
 


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 17:57.


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