Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. @name bob_8_compact
  2. @outputs I
  3. @persist Num I Text:string Screen:wirelink
  4. runOnChat(1)
  5. if(first()){Screen = entity():isConstrainedTo():wirelink()}
  6. Num++
  7. Text = Num:toString() + ". " + lastSpoke():name()+": "+lastSaid()
  8. if(Text:length()%30!=0){
  9. for(J=0,30-(Text:length()%30)-1){
  10. Text = Text + " "
  11. }}
  12. if(lastSpoke()==owner()){Color = 69
  13. }elseif(owner():isSteamFriend(lastSpoke())){Color = 190
  14. }elseif(lastSpoke():isAdmin()){Color = 960
  15. }else{Color = 949}
  16. if(I+Text:length()>540){
  17. Screen:writeString(Text:sub(1,540-I),I%30,floor((I%540)/30),Color)
  18. Screen:writeString(Text:sub(540-I+1,Text:length()),0,0,Color)
  19. }else{Screen:writeString(Text,I%30,floor((I%540)/30),Color)}
  20. I+=Text:length()
  21. I=I%540
  22. Screen:writeString(" ",I%30,floor((I%540)/30),1000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement