Weapon Pickup (Stop people from picking up weapons by walking over them)
2 replies, posted
Is there a way I could make it so you need to press E on weapons to pick them up and for it to show the PrintName when you look at it too? Cause that would be really helpful for getting the desired gun and stop prisoners from picking them up accidentally or saying it was a accident when it wasn't.
Use LocalPlayer():KeyDown(IN_USE) for checking to see if they're pressing e. Then, use the surface library for drawing the text in a HUDPaint hook. Lastly check to see if the player is in range of the weapon and holding e for x amount of secs.
Also, don't make two threads.
[QUOTE=M0dSe7en;41185608]Use LocalPlayer():KeyDown(IN_USE) for checking to see if they're pressing e. Then, use the surface library for drawing the text in a HUDPaint hook. Lastly check to see if the player is in range of the weapon and holding e for x amount of secs.
Also, don't make two threads.[/QUOTE]
I didn't make two threads... one was for gun pick up and one was for gun drop on death.
[editline]25th June 2013[/editline]
Don't know what to add it to and to stop people from picking them up when walking other them.
Sorry, you need to Log In to post a reply to this thread.