1LoL1 Posted February 9, 2015 Posted February 9, 2015 Can anyone create script "dann samp" /dann Hiiiiiiii /dann - nothing please..
Castillo Posted February 9, 2015 Posted February 9, 2015 What? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
manawydan Posted February 9, 2015 Posted February 9, 2015 1°can explain? 2° Sorry, but here is not request area "Querer não é poder, mas tentar é avançar"!
1LoL1 Posted February 10, 2015 Author Posted February 10, 2015 Announce - /dann text /ann text I want buy this script..
Mr_Moose Posted February 10, 2015 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. MTA Community | GitHub | 99Stack Forum
1LoL1 Posted February 10, 2015 Author 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
Ryancit2 Posted February 10, 2015 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) [Resource] Advance Voice Messaging system with 120+ languages support! [Resource] Information markers with ingame management + editable permissions! [Resource] Live weather telling app! [Resource] Send Emails from game! [HELP?] Ask Pakistani's, have fun %3C3
1LoL1 Posted February 10, 2015 Author 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
JR10 Posted February 10, 2015 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. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
1LoL1 Posted February 10, 2015 Author 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 ..
JR10 Posted February 10, 2015 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 Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
1LoL1 Posted February 10, 2015 Author 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
Ryancit2 Posted February 11, 2015 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 [Resource] Advance Voice Messaging system with 120+ languages support! [Resource] Information markers with ingame management + editable permissions! [Resource] Live weather telling app! [Resource] Send Emails from game! [HELP?] Ask Pakistani's, have fun %3C3
1LoL1 Posted February 11, 2015 Author 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
xeon17 Posted February 11, 2015 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? A unique GangWar gamemode waiting for you!Click here for more information.
1LoL1 Posted February 11, 2015 Author 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
JR10 Posted February 12, 2015 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. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
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