How do I make weapons invisible to other players?
I just want to make the knife invisible to other players, for everything else I want to be able to see.
|
Re: How do I make weapons invisible to other players?
Get the knife entity (perhaps using GetPlayerWeaponSlot) and then SetEntityRenderMode on it.
|
Re: How do I make weapons invisible to other players?
Quote:
SetEntityRenderMode(weapon_knife, RENDER_NONE); I have no idea what I am doing. |
Re: How do I make weapons invisible to other players?
new knife_entity = GetPlayerWeaponSlot(client, 2);
SetEntityRenderMode(knife_entity, RENDER_NONE); |
Re: How do I make weapons invisible to other players?
Quote:
|
Re: How do I make weapons invisible to other players?
Code:
/* Plugin Template generated by Pawn Studio */ |
Re: How do I make weapons invisible to other players?
I don't have a plugin. I am doing this from scratch without prior knowledge of coding for sourcemod.
|
Re: How do I make weapons invisible to other players?
/home/groups/sourcemod/upload_tmp/phpq2g8fU.sp(9) : error 017: undefined symbol "client"
1 Error. |
Re: How do I make weapons invisible to other players?
Try the snippet above. Go in-game, type sm_knife in console. Then taunt with the knife out and see if you see it.
|
Re: How do I make weapons invisible to other players?
Quote:
|
All times are GMT -4. The time now is 05:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.