Quote:
Originally Posted by napo_p2p
Ahh I misunderstood what you meant. I thought you didn't want to show a glow around yourself.
But now I know what you mean. Use this.i + 300 (lower indexes are visible to all).
|
But then that would be for a player with the index of 300? Also, when I try to add something in that accounts for the NPCs, I either get a ton of lag, or a negative number. this gets a negative #, but why?
NPC Code:
//#CLIENTSIDE
//stuff
if(this.inuse==1 || timeout)
{
for(this.i=0;this.i=<playerscount;this.i++)
{
setstring client.players,#v(this.i-this.n);
//stuff
else if(!players[strtofloat(#s(client.players))].id>-1 && this.i<playerscount)
{
this.n+=1;
}
//stuff
}