Raised This Month: $51 Target: $400
 12% 

[REQ] All weapons crosshair like this


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blanko
Senior Member
Join Date: Aug 2008
Old 01-28-2017 , 21:12   [REQ] All weapons crosshair like this
Reply With Quote #1

Make this crosshair for ALL weapons, not just the snipers. Thx in advance!

https://forums.alliedmods.net/showthread.php?t=78750
__________________
blanko is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-28-2017 , 21:24   Re: [REQ] All weapons crosshair like this
Reply With Quote #2

Try using this

PHP Code:
register_event"CurWeapon""Event_CurWeapon_Snipers""be""1=1"
Instead of

PHP Code:
register_event"CurWeapon""Event_CurWeapon_Snipers""be""1=1""2=3""2=13""2=18""2=24" 
If the green crosshair still appear, use this plugin https://forums.alliedmods.net/showthread.php?p=680121 and set amx_hud_hide_crosshair to 1
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 01-28-2017 at 21:26.
EFFx is offline
blanko
Senior Member
Join Date: Aug 2008
Old 01-28-2017 , 23:29   Re: [REQ] All weapons crosshair like this
Reply With Quote #3

Thank you my friend! The little problem is that the crosshair is gone for some reason here... so I don't know if it worked or not.
__________________
blanko is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-29-2017 , 00:03   Re: [REQ] All weapons crosshair like this
Reply With Quote #4

Try if it works with the cvar amx_hud_hide_crosshair 0. If not, idk, remove the "1=1" condition on register_event().
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 01-29-2017 at 00:04.
EFFx is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 01-29-2017 , 08:16   Re: [REQ] All weapons crosshair like this
Reply With Quote #5

Quote:
Originally Posted by EFFx View Post
Try using this
PHP Code:
register_event"CurWeapon""Event_CurWeapon_Snipers""be",  "1=1" 
[/php]
1=1 is for ?
2=3 i know 3 is for weapon_scout but what is for 2 ?
__________________
Thanks everyone. #miss_you_all

Last edited by indraraj striker; 01-29-2017 at 08:18.
indraraj striker is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-29-2017 , 09:28   Re: [REQ] All weapons crosshair like this
Reply With Quote #6

https://wiki.alliedmods.net/Half-lif...ents#CurWeapon

byte IsActive
byte WeaponID
byte ClipAmmo
__________________

Last edited by OciXCrom; 01-29-2017 at 09:28.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
blanko
Senior Member
Join Date: Aug 2008
Old 01-30-2017 , 05:28   Re: [REQ] All weapons crosshair like this
Reply With Quote #7

Quote:
Originally Posted by EFFx View Post
Try if it works with the cvar amx_hud_hide_crosshair 0. If not, idk, remove the "1=1" condition on register_event().
Not working, regular crosshair showing up.
__________________
blanko is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 01-30-2017 , 06:09   Re: [REQ] All weapons crosshair like this
Reply With Quote #8

Quote:
Originally Posted by OciXCrom View Post
https://wiki.alliedmods.net/Half-lif...ents#CurWeapon

byte IsActive
byte WeaponID
byte ClipAmmo
so that isActive 1
weaponID 2
ClipAmmo 3 ?
__________________
Thanks everyone. #miss_you_all
indraraj striker is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-30-2017 , 08:12   Re: [REQ] All weapons crosshair like this
Reply With Quote #9

Yes.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-30-2017 , 09:49   Re: [REQ] All weapons crosshair like this
Reply With Quote #10

Quote:
Originally Posted by blanko View Post
Not working, regular crosshair showing up.
So, you should use amx_hud_hide_crosshair to 1 for remove the regular crosshair.

Try if it works:

PHP Code:
#include <amxmodx> 
#include <amxmisc> 

#define PLUGIN "HUD Customizer 0.4" 
#define VERSION "0.4" 
#define AUTHOR "Igoreso" 

#define HUD_HIDE_CROSS (1<<6)

new g_msgHideWeapon

public plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR
    
g_msgHideWeapon get_user_msgid("HideWeapon")
    
register_event("ResetHUD""onResetHUD""b")
    
register_message(g_msgHideWeapon"msgHideWeapon")


public 
onResetHUD(id)
{
    
message_begin(MSG_ONEg_msgHideWeapon, .player id)
    
write_byte(HUD_HIDE_CROSS)
    
message_end()    
    
    
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("Crosshair"), .player id)
    
write_byte(1)
    
message_end()
}

public 
msgHideWeapon()
{
    
set_msg_arg_int(1ARG_BYTEget_msg_arg_int(1) | HUD_HIDE_CROSS)

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 01-30-2017 at 09:54.
EFFx is offline
Reply



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 23:04.


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