Thread: Text Help.
View Single Post
  #6  
Old 01-20-2002, 10:41 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
NPC Code:

// NPC made by TDO
if(playertouchsme){
toweapons scrolltext;
}
if(playerchats && isweapon && startswith(setscrolltext,#c)){
setstring scrolltext,#e(13,-1,#c);
setstring scrolling,#s(scrolltext);
}
if(weaponfired){
if(this.active==1){this.active=0;}
else {
setstring scrolling,#s(scrolltext);
this.active=1;
timeout=.05;
}
}

if(timeout && this.active==1){
setstring scrolling, #e(strlen(#s(scrolling))-1,-1,#s(scrolling))#e(0,strlen(#s(scrolling))-1,#s(scrolling));
setplayerprop #c,#s(scrolling);
timeout=.1;
}



a text-scrolling-item... I'm sure I could make it shorter, but I've no time...
__________________
No Webhost at the moment
Reply With Quote