Hello i have problem with small simple plugin.. plugin remove crosshair for zombies, its ok... but when player use antidote and become human no have crosshair. Can anyone fix code to human have crosshair ?
#include <amxmodx>
#include <amxmisc>
#include <zombie_plague_special>
new HideWeapon
public plugin_init() {
register_plugin("Zombie no crosshair","1.0","asd")
This code works.. thanks When test i looking the small bugs.. crosshair of scout, sg550 and g3sg1 is removed.. can you add a code to ignore this snipers crosshair.
/* a p228 b hegrenade c xm1014 d c4 e mac10 f aug g smokegrenade h elite i fiveseven j ump45 k galil l famas m usp n glock18 o mp5navy p m249 q m3 r m4a1 s tmp t flashbang u deagle v sg552 w ak47 x knife y p90 */ #include <amxmodx> #include <zombie_plague_special> #include <fakemeta>
Not compile... zp_no_crosshair.sma(74) : error 017: undefined symbol "HideWeaponCrosshair" zp_no_crosshair.sma(76) : error 017: undefined symbol "HIDEHUD_CROSSHAIR" zp_no_crosshair.sma(78) : error 017: undefined symbol "HideWeaponCrosshair" zp_no_crosshair.sma(80) : error 017: undefined symbol "HIDEHUD_CROSSHAIR"
For no remove crosshair on scout, sg550 and g3sg1 on humans maybe add weapons code here static const iWeaponsIds[] = { ? CSW_SCOUT, CSW_G3SG1, CSW_SG550
For human: This code remove crosshair for snipers.. when choose sniper and throw grenade, grenade no have crosshair... For zombie: Code not remove zombie crosshar except zombie throw grenade (infect or frost). No have error in console and logs.
No have crosshair on human grenades When zoomed with sniper and change to knife - knife no have crosshair When player is zombie and use antidote no have human crosshair on knife Sometime this is problem. And sometime is normal