AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Id's Through Weapon Events [SOLVED] (https://forums.alliedmods.net/showthread.php?t=46673)

Nostrodamous 10-31-2006 00:43

Id's Through Weapon Events [SOLVED]
 
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.

MaximusBrood 10-31-2006 05:54

Re: Id's Through Weapon Events
 
Show the code you already have.

schnitzelmaker 10-31-2006 06:43

Re: Id's Through Weapon Events
 
Look here: http://forums.alliedmods.net/showthread.php?p=165132

Nostrodamous 10-31-2006 17:13

Re: Id's Through Weapon Events
 
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 :up: thansk for the help guys


All times are GMT -4. The time now is 04:54.

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