Thread: goggles
View Single Post
  #3  
Old 01-18-2006, 12:07 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by napo_p2p
To get rid of it showing NPCs, in the for loop try checking to make sure the player's ID is > -1 (since 'character' NPC ids are -1). You can accomplish this by using:
PHP Code:
if (players[this.i].id > -1
NOTE: On a GS2 enabled server (and with v4), I do not think that NPCs are included in the players array.
We are gs2 enabled, but I'll try that
Quote:
As for your problem with a player seeing the light around himself, I believe that the first person in the players array (clientside) is yourself. So start the for loops at 1 (NOTE: I am not certain about this, but try if you are willing ).
Eh, that would just make it so I couldn't see myself glowing
Quote:

Also, it's probably best to have only one if (weaponfired) block.
Got screwed up with the timeout x_X

Last edited by excaliber7388; 01-18-2006 at 12:23 AM..
Reply With Quote