Raised This Month: $ Target: $400
 0% 

[REQ] All weapons crosshair like this


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
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 #1

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


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 02:01.


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