AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   2 issues (https://forums.alliedmods.net/showthread.php?t=143416)

Racoon 11-19-2010 14:20

2 issues
 
Hi! I've got some issues:

1) How to hook a specified number of headshots in a row?
2) How to make weapon disappear immediately after being dropped?

Thanks in advance))

Exolent[jNr] 11-19-2010 16:41

Re: 2 issues
 
1. Use a global array indexed by the player id that counts the number of headshots.
Hook DeathMsg (or any other method of hooking death) and check if it is a headshot.
If headshot, increase the headshot variable for that player, otherwise set to 0.

2. See "No Weapon Drop" plugin by VEN.


All times are GMT -4. The time now is 11:23.

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