Raised This Month: $13 Target: $400
 3% 

write_byte Crosshair Question Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 05-28-2020 , 12:30   write_byte Crosshair Question Help
Reply With Quote #1

I dont know if this thread is correct added here in the right forum.

Hello, i am trying to make the crosshair for the zombies bigger but i dont know how. I think this here is the code:

Code:
		message_begin(MSG_ONE, msg_hideweapon, _ , id)
		write_byte(HIDE_FLASH | HIDE_HP_HUD | HIDE_MONEY | HIDE_HUD)
		message_end()
		
		message_begin(MSG_ONE,get_user_msgid("Crosshair"),{0,0,0},id)
		write_byte(100)
		message_end()
	}
	else
	{
		message_begin(MSG_ONE, msg_hideweapon, _ , id)
		write_byte(100) 
		message_end()
	}
	
	return PLUGIN_CONTINUE
}
Godofwar is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-29-2020 , 23:32   Re: write_byte Crosshair Question Help
Reply With Quote #2

It only draws the crosshair if byte is 1 and not if 0.

https://wiki.alliedmods.net/Half-Lif...ents#Crosshair
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell
DJEarthQuake 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 16:37.


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