Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. function asay(thePlayer, commandName, type, ...)
  2. if (getElementData( thePlayer, "adminlevel" )) >= 1 then
  3. local anev = getElementData ( thePlayer, "anev" )
  4. if not (...) or not type then
  5. outputChatBox("#3d7abc[DoubleMTA]: #ffffff /"..commandName.." <típus> <üzenet>", thePlayer, 255, 194, 15, true)
  6. outputChatBox("#3d7abc[DoubleMTA]: #d9d9d9Típusok: #3d7abcinfo #d9d9d9| #3d7abcwarning #d9d9d9| #3d7abcsuccess #d9d9d9| #3d7abcerror #d9d9d9.", thePlayer, 255, 194, 15, true)
  7. else
  8. local adminrang = exports.dm_core:getPlayerAdminTitle(thePlayer)
  9. message = table.concat({...}, " ")
  10. local playerName = getPlayerName(thePlayer)
  11. type = tostring(type)
  12. if type == "info" or type == "warning" or type == "error" or type == "success" then
  13. exports.dm_infobox:addNotification(getRootElement(), adminrang .. " " .. anev .. ": " .. message, type)
  14. else
  15. outputChatBox("Példa: /"..commandName.." [Típus] [Admin Üzenet]", thePlayer, 255, 194, 15)
  16. outputChatBox("#3d7abc[DoubleMTA]: #d9d9d9Típusok: #3d7abcinfo #d9d9d9| #3d7abcwarning #d9d9d9| #3d7abcsuccess #d9d9d9| #3d7abcerror #d9d9d9.", thePlayer, 255, 194, 15, true)
  17. end
  18. end
  19. end
  20. end
  21. addCommandHandler("asay", asay, false, false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement