Brenower

Tags de cores em popup

Feb 17th, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.04 KB | None | 0 0
  1. -- Cores para popup
  2. -- Créditos:Brenower
  3. -- Function
  4. function popup(id,type,msg,player,x,y,width,fixed)
  5.     msg = msg:gsub("<VP>","<font color='#2ECF73'>"):gsub("<T>","<font color='#A4CF9E'>"):gsub("<V>","<font color='#009D9D'>"):gsub("<VI>","<font color='#C53DFF'>"):gsub("<ROSE>","<font color='#ED67EA'>"):gsub("<R>","<font color='#CB546B'>"):gsub("<PT>","<font color='#2EBA7E'>"):gsub("<PS>","<font color='#F1C4F6'>"):gsub("<N2>","<font color='#9292AA'>"):gsub("<N>","<font color='#C2C2DA'>"):gsub("<J>","<font color='#BABD2F'>"):gsub("<G>","<font color='#606090'>"):gsub("<CS>","<font color='#EFCE8F'>"):gsub("<CR>","<font color='#EB1D51'>"):gsub("<CHR>","<font color='#FEB1FC'>"):gsub("<CH>","<font color='#98E2EB'>"):gsub("<CEP>","<font color='#F0A78E'>"):gsub("<CE>","<font color='#E88F4F'>"):gsub("<B>","<font color='#2F7FCC'>"):gsub("<BL>","<font color='#6C77C1'>")
  6.     if fixed == true then
  7.         ui.addPopup(id,type,msg,player,x,y,width,true)
  8.     else
  9.         ui.addPopup(id,type,msg,player,x,y,width,false)
  10.     end
  11. end
  12.  
  13. popup(0,0,"<V>Teste",nil,300,175,200)
Advertisement
Add Comment
Please, Sign In to add comment