gudenmike Posted July 7, 2010 Posted July 7, 2010 hey guys ive tried making an radio like if you write "/r help im pinned down at los santos airport" it will go out to everyone just like an basic chat script but i suck at scripting to be honest anyone here who can help or maybe make the script for me (i guess its simple) My friends and my girlfriend come before anything else ! Zombie nombie apocalypse <3
TheRealCow Posted July 7, 2010 Posted July 7, 2010 function bla ( ) outputChatBox ("help im pinned down at los santos airport", getRootElement(), 0,255,0 ) end addCommandHandler ("r", bla ) something like that?? Server Name: mR|Team Clan Race Server Server IP: 84.82.81.225:22004
50p Posted July 7, 2010 Posted July 7, 2010 Maybe this will help you: https://forum.multitheftauto.com/viewtop ... 91&t=28285 - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
gudenmike Posted July 7, 2010 Author Posted July 7, 2010 thanks guys ! ill try yours therealcow first My friends and my girlfriend come before anything else ! Zombie nombie apocalypse <3
gudenmike Posted July 7, 2010 Author Posted July 7, 2010 ohh no wait cow i needed an script that will make you able to type anything by using /r im going to use in on my zombie rp server so you can contact the army using /r not only the army but so all people can se it My friends and my girlfriend come before anything else ! Zombie nombie apocalypse <3
gudenmike Posted July 7, 2010 Author Posted July 7, 2010 well ill just try to explain better i want people to write /r "there text" so it comes out in the chat box as RADIO:(text) My friends and my girlfriend come before anything else ! Zombie nombie apocalypse <3
Castillo Posted July 7, 2010 Posted July 7, 2010 well ill just try to explain betteri want people to write /r "there text" so it comes out in the chat box as RADIO:(text) this is what u want i think function radioChat( player, cmd, ... ) local message = table.concat({...}," ") outputChatBox ("*RADIO: "..message) end addCommandHandler("r",radioChat) i dint put the player who types, should i put? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
50p Posted July 7, 2010 Posted July 7, 2010 Another one who seems to ignore looking at my links. Or why don't you just use wiki which gives you all the answers? - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
Castillo Posted July 7, 2010 Posted July 7, 2010 Another one who seems to ignore looking at my links. Or why don't you just use wiki which gives you all the answers? yeah, i was wondering why he dint used yours. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
gudenmike Posted July 7, 2010 Author Posted July 7, 2010 50p i did use your link but i didnt get it to work since that were an "call" system based on teams and such so sorry if you got something wrong haha thx solid ohh and i tried the wiki but i didnt find anything but i tried and thats what counts isnt it ? im happy that your guys are here im learning the things im asking for btw no you shoulnt solid thx My friends and my girlfriend come before anything else ! Zombie nombie apocalypse <3
gudenmike Posted July 7, 2010 Author Posted July 7, 2010 ohh 1 last question how can i give the radio text colour ? My friends and my girlfriend come before anything else ! Zombie nombie apocalypse <3
Castillo Posted July 7, 2010 Posted July 7, 2010 ohh 1 last question how can i give the radio text colour ? dont know i tryed many things like EX colors and nothing works. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
gudenmike Posted July 7, 2010 Author Posted July 7, 2010 hm.. 50p got any idea ? just gonna search the wiki My friends and my girlfriend come before anything else ! Zombie nombie apocalypse <3
gudenmike Posted July 7, 2010 Author Posted July 7, 2010 ive got it working mate Heres the code for public use ! function radioChat( player, cmd, ... ) local message = table.concat({...}," ") outputChatBox ("*RADIO: "..message, getRootElement(), 255, 75, 0) end addCommandHandler("r",radioChat) My friends and my girlfriend come before anything else ! Zombie nombie apocalypse <3
Castillo Posted July 7, 2010 Posted July 7, 2010 ive got it working mate Heres the code for public use ! function radioChat( player, cmd, ... ) local message = table.concat({...}," ") outputChatBox ("*RADIO: "..message, getRootElement(), 255, 75, 0) end addCommandHandler("r",radioChat) ahhhhhhhhhhhhhhhhhh i forgot about that "getRootElement()" San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
gudenmike Posted July 7, 2010 Author Posted July 7, 2010 you see guys !? i am using wiki My friends and my girlfriend come before anything else ! Zombie nombie apocalypse <3
50p Posted July 8, 2010 Posted July 8, 2010 you see guys !?i am using wiki I always recommend you use it on everyday basis. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
gudenmike Posted July 8, 2010 Author Posted July 8, 2010 hehe 50p i've just began learning to scripting so ive just needed some help hope you understand but i do use the wiki i just didnt knew how to use the outputchatbox so when players use /r they can write their own text i know how to make them use /r but then i dont know how to make them type whatever they want My friends and my girlfriend come before anything else ! Zombie nombie apocalypse <3
50p Posted July 8, 2010 Posted July 8, 2010 hehe 50p i've just began learning to scripting so ive just needed some help hope you understand but i do use the wiki i just didnt knew how to use the outputchatbox so when players use /r they can write their own text i know how to make them use /r but then i dont know how to make them type whatever they want You would know if you read example codes that are on almost every function/event wiki page. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
gudenmike Posted July 8, 2010 Author Posted July 8, 2010 50p i did read but i didnt find anything allright or else i wouldnt ask here.. end of discution (lol spelled) My friends and my girlfriend come before anything else ! Zombie nombie apocalypse <3
dzek (varez) Posted July 8, 2010 Posted July 8, 2010 blind? https://wiki.multitheftauto.com/wiki/AddCommandHandler example 4.. Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
gudenmike Posted July 9, 2010 Author Posted July 9, 2010 ffs varez i know AddCommandHandler i were the outputchatbox i had problems with but anyways its fixed now My friends and my girlfriend come before anything else ! Zombie nombie apocalypse <3
dzek (varez) Posted July 9, 2010 Posted July 9, 2010 i know you know addCommandHandler, but i wanted to show you that your problem was explained in example number four on addCommandHandler wiki page. so you didnt read carefully. thats all Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
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