View Single Post
  #2  
Old 09-03-2002, 09:17 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Re: How does this NPC work please?

Quote:
Originally posted by Glory
if (created)
{ for (i=0;i<allplayerscount;i++)
{ if (strequals(#F,))
{ if (strequals(#a,accname))
{ setplayerprop #3,headname;}
}
}
}
that wouldnt work at all
NPC Code:

if(created){
for(i=0;i<allplayerscount;i++){
with(allplayers[i]){
if(strlen(#F)==0){
if(strequals(#a,accname)){
setplayerprop #3,head;
}
}
}
}
}


Last edited by Python523; 09-04-2002 at 04:43 AM..
Reply With Quote