Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function asay(thePlayer, commandName, type, ...)
- if (getElementData( thePlayer, "adminlevel" )) >= 1 then
- local anev = getElementData ( thePlayer, "anev" )
- if not (...) or not type then
- outputChatBox("#3d7abc[DoubleMTA]: #ffffff /"..commandName.." <típus> <üzenet>", thePlayer, 255, 194, 15, true)
- outputChatBox("#3d7abc[DoubleMTA]: #d9d9d9Típusok: #3d7abcinfo #d9d9d9| #3d7abcwarning #d9d9d9| #3d7abcsuccess #d9d9d9| #3d7abcerror #d9d9d9.", thePlayer, 255, 194, 15, true)
- else
- local adminrang = exports.dm_core:getPlayerAdminTitle(thePlayer)
- message = table.concat({...}, " ")
- local playerName = getPlayerName(thePlayer)
- type = tostring(type)
- if type == "info" or type == "warning" or type == "error" or type == "success" then
- exports.dm_infobox:addNotification(getRootElement(), adminrang .. " " .. anev .. ": " .. message, type)
- else
- outputChatBox("Példa: /"..commandName.." [Típus] [Admin Üzenet]", thePlayer, 255, 194, 15)
- outputChatBox("#3d7abc[DoubleMTA]: #d9d9d9Típusok: #3d7abcinfo #d9d9d9| #3d7abcwarning #d9d9d9| #3d7abcsuccess #d9d9d9| #3d7abcerror #d9d9d9.", thePlayer, 255, 194, 15, true)
- end
- end
- end
- end
- addCommandHandler("asay", asay, false, false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement