ferijani11 Posted October 20, 2013 Share Posted October 20, 2013 Hy everyone. I have a script, functional but I do not know how to do it to show that someone entered the service admin. This script is. https://community.multitheftauto.com/in ... ls&id=5812 [sorry for my bad english language..] Link to comment
Tete omar Posted October 20, 2013 Share Posted October 20, 2013 Simple notification window. To show notification just use function showBox (string type, string message). Script allow three types of notification:-error -warning -info example: showBox ("info","Just some information") Every type has different icon and header, time which window is showing depends on length of message. You can use function while another window is showing, it will simply add it to queue. PSD included Link to comment
Sergioks Posted December 4, 2013 Share Posted December 4, 2013 Simple notification window. To show notification just use function showBox (string type, string message). Script allow three types of notification:-error -warning -info example: showBox ("info","Just some information") Every type has different icon and header, time which window is showing depends on length of message. You can use function while another window is showing, it will simply add it to queue. PSD included Already Been Tested that and Grab However No Script With That Code. For It So many problems with this script Link to comment
denny199 Posted December 4, 2013 Share Posted December 4, 2013 function shout(player, cmd, ...) local accountname = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Owner" )) or isObjectInACLGroup ( "user." ..accountname, aclGetGroup ( "Admin" )) then players = getElementsByType ( "player" ) for k,v in pairs(players) do local message = table.concat({...}," ") exports["notification"]:showBox(v, "info",message) -- put here your resource near "notification" end end end addCommandHandler("notificate", shout) I used this on my server to notificate everyone ( server-side) Usage: /notificate The text what you want to be displayed. For client side: exports["notification"]:showBox("info""Sometimes I dream about cheeeese") -- put here your resource near "notification" Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now