View Single Post
  #4  
Old 12-07-2004, 07:36 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by ZeroTrack
Something like this is a good way to check
PHP Code:
if (createdtimeout=0.1;

if (
timeout) {
  for (
a=0;a<allplayerscount;a++) {
    
with (allplayers[a]) {
      if (
strlen(#F)>0)
        
if(!strcontains(#s(this.tempplayers),#a)) addstring this.tempplayers,#a;
    
}
  }
  
logon();
  
logoff();
  
setstring this.tempplayers,;
  
timeout=1;
}
function 
logon() {
  
tokenize #s(this.tempplayers);
  
for (a=0;a<tokenscount;a++) {
    if (!
strcontains(#s(this.players),#t(a))){
      
addstring this.players,#t(a);
    
}
  }
}
function 
logoff() {
  
tokenize #s(this.players);
  
for (a=0;a<tokenscount;a++) {
    if (!
strcontains(#s(this.tempplayers),#t(a))) {
      
removestring this.players,#t(a);
    
}
  }

Looks VERY similar to my npc on Bravo with the exception of a few string names...
__________________
Do it with a DON!
Reply With Quote