View Single Post
  #6  
Old 12-07-2001, 04:17 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by Xaviar


Why on earth did you need to use a string?
um I do not need to but I just wanted to show an easy example... but if u want it another way...

//show stat if player enters
if(playerenters){
if(save[0]==0){message Door closed;}
else {message Door open;}
}
//What happens if touched
if(playertouchsme){
if(save[0]==1){setlevel2 level,x,y;}
else {say2 Closed go away!;}
}

//changing stat
if(playerchats && strequals(#a,Account)){
if(strequals(#c,open)){
save[0]=1;
message Door open;
}
if(strequals(#c,close)){
save[0]=0;
message Door closed
}
}

just an easy example too but should work
__________________
No Webhost at the moment
Reply With Quote