tiesjan Posted September 3, 2011 Share Posted September 3, 2011 i am i beginner with scripting and it would be nice if you could make an example. if i typ the command /test ingame that i see: "this is a test" in the chatbox if i know this i can get futher in the mta scripting world Link to comment
SpUnKyMe Posted September 3, 2011 Share Posted September 3, 2011 (edited) function test() outputChatBox("This is just a test",getRootElement(),255,255,0) end addCommandHandler("test",test) -- this will output it for everyone function test2(thePlayer,cmd) outputChatBox("This is just a test",thePlayer,255,255,0) end addCommandHandler("test2",test2) --this will output it just for player who typed /test2 Edited September 3, 2011 by Guest Link to comment
triplesnake Posted September 3, 2011 Share Posted September 3, 2011 i was writing the last line and then spunky posted lolz Link to comment
triplesnake Posted September 3, 2011 Share Posted September 3, 2011 jr can u give me a little help even just a start? in the topic below with 1 Link to comment
Castillo Posted September 3, 2011 Share Posted September 3, 2011 triplesnake, don't double post please. Link to comment
triplesnake Posted September 3, 2011 Share Posted September 3, 2011 ok i didnt know thats double posting but no one seemed to be have read the topic Link to comment
JR10 Posted September 3, 2011 Share Posted September 3, 2011 tiesjan, you will find the wiki useful: https://wiki.multitheftauto.com/wiki/Main_Page 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