Raised This Month: $ Target: $400
 0% 

2 issues


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Racoon
Senior Member
Join Date: Mar 2008
Location: Ukraine
Old 11-19-2010 , 14:20   2 issues
Reply With Quote #1

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))

Last edited by Racoon; 11-19-2010 at 15:12.
Racoon is offline
Send a message via ICQ to Racoon
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-19-2010 , 16:41   Re: 2 issues
Reply With Quote #2

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.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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 11:23.


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