1LoL1 Posted February 9, 2015 Share Posted February 9, 2015 Can anyone create script "dann samp" /dann Hiiiiiiii /dann - nothing please.. Link to comment
manawydan Posted February 9, 2015 Share Posted February 9, 2015 1°can explain? 2° Sorry, but here is not request area Link to comment
1LoL1 Posted February 10, 2015 Author Share Posted February 10, 2015 Announce - /dann text /ann text I want buy this script.. Link to comment
Mr_Moose Posted February 10, 2015 Share Posted February 10, 2015 That can be done with just a few lines of code: function announce(plr, text) outputChatBox(text, root, 255, 255, 255, true) -- Accept color codes as well end addCommandHandler("dann", announce) addCommandHandler("ann", announce) It's not really worth to pay for that. Link to comment
1LoL1 Posted February 10, 2015 Author Share Posted February 10, 2015 That can be done with just a few lines of code: function announce(plr, text) outputChatBox(text, root, 255, 255, 255, true) -- Accept color codes as well end addCommandHandler("dann", announce) addCommandHandler("ann", announce) It's not really worth to pay for that. I think when I enter /dann so I text runs up the middle of the screen and a little graphs and when I enter only /dann so it disappears .. and /ann just as admin text Link to comment
Ryancit2 Posted February 10, 2015 Share Posted February 10, 2015 Here is serverside command for chatbox output (/ann text): function shoutAdmin(plr, cmd, ...) local msg = table.concat({...}, " ") outputChatBox("Admin "..getPlayerName(plr)..": "..msg, root, 200, 0, 0) end addCommandHandler("ann", shoutAdmin) And here is the clientside command (/dann text) for custom shout: local sx, sy = guiGetScreenSize() local isShowing = false function showMessage() dxDrawText(text, sx/2, sy/2, sx, sy, tocolor(255, 255, 255, 255), 2, "sans") isShowing = true end function renderText(cmd, ...) if (not isShowing) then text = table.concat({...}," ") addEventHandler("onClientRender", root, showMessage) else removeEventHandler("onClientRender", root, showMessage) isShowing = false end end addCommandHandler("dann", renderText) Link to comment
1LoL1 Posted February 10, 2015 Author Share Posted February 10, 2015 Here is serverside command for chatbox output (/ann text): function shoutAdmin(plr, cmd, ...) local msg = table.concat({...}, " ") outputChatBox("Admin "..getPlayerName(plr)..": "..msg, root, 200, 0, 0) end addCommandHandler("ann", shoutAdmin) And here is the clientside command (/dann text) for custom shout: local sx, sy = guiGetScreenSize() local isShowing = false function showMessage() dxDrawText(text, sx/2, sy/2, sx, sy, tocolor(255, 255, 255, 255), 2, "sans") isShowing = true end function renderText(cmd, ...) if (not isShowing) then text = table.concat({...}," ") addEventHandler("onClientRender", root, showMessage) else removeEventHandler("onClientRender", root, showMessage) isShowing = false end end addCommandHandler("dann", renderText) its very good.. but can you please use only Admin. And even when I enter this please ~ only on one row down so Somehow 1 test~2 test~3 test 1 test 2 test 3 test Please do terribly Link to comment
JR10 Posted February 10, 2015 Share Posted February 10, 2015 How about you try to do it yourself? If you fail we can help you with your code, but this is not a forum for requests. Link to comment
1LoL1 Posted February 10, 2015 Author Share Posted February 10, 2015 How about you try to do it yourself? If you fail we can help you with your code, but this is not a forum for requests. I know .. just please him if it can not modify the code so .. because that's how it looks awful .. Link to comment
JR10 Posted February 10, 2015 Share Posted February 10, 2015 You can search on the community for similar resources, a few examples: https://community.multitheftauto.com/index.php?p= ... ls&id=6292 https://community.multitheftauto.com/index.php?p= ... ls&id=4448 https://community.multitheftauto.com/index.php?p= ... ls&id=8620 Link to comment
1LoL1 Posted February 10, 2015 Author Share Posted February 10, 2015 You can search on the community for similar resources, a few examples:https://community.multitheftauto.com/index.php?p= ... ls&id=6292 https://community.multitheftauto.com/index.php?p= ... ls&id=4448 https://community.multitheftauto.com/index.php?p= ... ls&id=8620 I know, but this is not resources for /dann Link to comment
1LoL1 Posted February 11, 2015 Author Share Posted February 11, 2015 Anyone please help? Link to comment
Ryancit2 Posted February 11, 2015 Share Posted February 11, 2015 Its so easy, JR10 meant like this: use this resource https://community.multitheftauto.com/index.php?p= ... ls&id=4448 And add export this to your script by: function outputAdminMessage(cmd, ...) local text = table.concat({...}, " ") exports["guimessages"]:outputServer(text, 200, 0, 0) -- Replace "guimessages" with folder name in which you placed the downloaded resource. end Link to comment
1LoL1 Posted February 11, 2015 Author Share Posted February 11, 2015 Its so easy, JR10 meant like this: use this resource https://community.multitheftauto.com/index.php?p= ... ls&id=4448And add export this to your script by: function outputAdminMessage(cmd, ...) local text = table.concat({...}, " ") exports["guimessages"]:outputServer(text, 200, 0, 0) -- Replace "guimessages" with folder name in which you placed the downloaded resource. end Please can you edit my code? i want to Samp /dann not MTA Link to comment
xeon17 Posted February 11, 2015 Share Posted February 11, 2015 Its so easy, JR10 meant like this: use this resource https://community.multitheftauto.com/index.php?p= ... ls&id=4448And add export this to your script by: function outputAdminMessage(cmd, ...) local text = table.concat({...}, " ") exports["guimessages"]:outputServer(text, 200, 0, 0) -- Replace "guimessages" with folder name in which you placed the downloaded resource. end i want to Samp /dann not MTA What? Link to comment
1LoL1 Posted February 11, 2015 Author Share Posted February 11, 2015 Its so easy, JR10 meant like this: use this resource https://community.multitheftauto.com/index.php?p= ... ls&id=4448And add export this to your script by: function outputAdminMessage(cmd, ...) local text = table.concat({...}, " ") exports["guimessages"]:outputServer(text, 200, 0, 0) -- Replace "guimessages" with folder name in which you placed the downloaded resource. end i want to Samp /dann not MTA What? Here is serverside command for chatbox output (/ann text): function shoutAdmin(plr, cmd, ...) local msg = table.concat({...}, " ") outputChatBox("Admin "..getPlayerName(plr)..": "..msg, root, 200, 0, 0) end addCommandHandler("ann", shoutAdmin) And here is the clientside command (/dann text) for custom shout: local sx, sy = guiGetScreenSize() local isShowing = false function showMessage() dxDrawText(text, sx/2, sy/2, sx, sy, tocolor(255, 255, 255, 255), 2, "sans") isShowing = true end function renderText(cmd, ...) if (not isShowing) then text = table.concat({...}," ") addEventHandler("onClientRender", root, showMessage) else removeEventHandler("onClientRender", root, showMessage) isShowing = false end end addCommandHandler("dann", renderText) its very good.. but can you please use only Admin. And even when I enter this please ~ only on one row down so Somehow 1 test~2 test~3 test 1 test 2 test 3 test Please do terribly Link to comment
JR10 Posted February 12, 2015 Share Posted February 12, 2015 For the future, avoid requesting and try something yourself first. You can then post a topic asking for help along with your attempts. 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