AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] All weapons crosshair like this (https://forums.alliedmods.net/showthread.php?t=293310)

blanko 01-28-2017 21:12

[REQ] All weapons crosshair like this
 
Make this crosshair for ALL weapons, not just the snipers. Thx in advance!

https://forums.alliedmods.net/showthread.php?t=78750

EFFx 01-28-2017 21:24

Re: [REQ] All weapons crosshair like this
 
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

blanko 01-28-2017 23:29

Re: [REQ] All weapons crosshair like this
 
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.

EFFx 01-29-2017 00:03

Re: [REQ] All weapons crosshair like this
 
Try if it works with the cvar amx_hud_hide_crosshair 0. If not, idk, remove the "1=1" condition on register_event().

indraraj striker 01-29-2017 08:16

Re: [REQ] All weapons crosshair like this
 
Quote:

Originally Posted by EFFx (Post 2490722)
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 ?

OciXCrom 01-29-2017 09:28

Re: [REQ] All weapons crosshair like this
 
https://wiki.alliedmods.net/Half-lif...ents#CurWeapon

byte IsActive
byte WeaponID
byte ClipAmmo

blanko 01-30-2017 05:28

Re: [REQ] All weapons crosshair like this
 
Quote:

Originally Posted by EFFx (Post 2490740)
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.

indraraj striker 01-30-2017 06:09

Re: [REQ] All weapons crosshair like this
 
Quote:

Originally Posted by OciXCrom (Post 2490827)
https://wiki.alliedmods.net/Half-lif...ents#CurWeapon

byte IsActive
byte WeaponID
byte ClipAmmo

so that isActive 1
weaponID 2
ClipAmmo 3 ?

OciXCrom 01-30-2017 08:12

Re: [REQ] All weapons crosshair like this
 
Yes.

EFFx 01-30-2017 09:49

Re: [REQ] All weapons crosshair like this
 
Quote:

Originally Posted by blanko (Post 2491049)
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)




All times are GMT -4. The time now is 02:01.

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