Quote:
Originally posted by Com013
That doesn't work anymore - even showcharacter NPCs have a positive ID. Unfortunatly.
Use strlen(#n(i))>0 or something like that. I was thinking of players[i]fullhearts>0 but I fear that doesn't work online (client-side).
|
for(a=0;a<playerscount;a++){
if(players[a].id!=-1){
worked for me (and #n wouldnt work if an npc was given a nickname with setcharprop #n)