Raised This Month: $ Target: $400
 0% 

Id's Through Weapon Events [SOLVED]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-31-2006 , 00:43   Id's Through Weapon Events [SOLVED]
Reply With Quote #1

ok , i am doing a bullet count through the weapon event, so i can execute a functiion every 10 bullets. i have it workig but the problem is, it makes my function execute on to everyone , and i want it executed on only the player who shot the 10th bullet. how can i find out who shot bullet number 10 and execute my code on them only.

Last edited by Nostrodamous; 10-31-2006 at 17:14.
Nostrodamous is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 10-31-2006 , 05:54   Re: Id's Through Weapon Events
Reply With Quote #2

Show the code you already have.
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 10-31-2006 , 06:43   Re: Id's Through Weapon Events
Reply With Quote #3

Look here: http://forums.alliedmods.net/showthread.php?p=165132
__________________
schnitzelmaker is offline
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-31-2006 , 17:13   Re: Id's Through Weapon Events
Reply With Quote #4

ok i figured it out it was my fualt the code didnt work right , becasue i didnt set my variable back to 0 until later , so it executed my function on everyone that went over my variable's value. simply fixed by resseting the value of the varaible as soon as my function executes thansk for the help guys
Nostrodamous 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 04:54.


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