Bolodefchoco_LUAXML

[Script] Messenger

Apr 3rd, 2016
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. --Creator: Bolodefchoco
  2. --Made in: 03/04/2016
  3. --Last update: 26/05/2016
  4. --[[ Notes:
  5.     Does:
  6.         Permite que vocĂȘ coloque mensagens pela tela, onde todos podem ver.
  7.     Commands:
  8.         !
  9.             m
  10.                 Message --> Mensagem que vocĂȘ quer
  11. ]]--
  12.  
  13. admins = {Bolodefchoco=1,Tigrounette=1} --< Troque Bolodefchoco ou Tigrounette pelo seu nome
  14.  
  15. eventChatCommand=function(n,c)
  16.     if c:sub(1,1) == "m" and admins[n] then
  17.         local cmd = c:sub(3)
  18.         local w = 200+#cmd*4
  19.         w = w>795 and 795 or w
  20.         local x = 400-w/2
  21.         ui.addPopup(0,0,"<p align='center'><font size='12' color='#BABD2F'>["..n.."]<font><font size='12' color='#C2C2DA'> "..cmd.."</font></p>",nil,x,200,w,true)
  22.     end
  23. end
  24.  
  25. system.disableChatCommandDisplay("m",true)
Advertisement
Add Comment
Please, Sign In to add comment