View Single Post
  #3  
Old 12-06-2004, 09:26 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to 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);
    
}
  }

__________________

Reply With Quote