tiesjan Posted September 3, 2011 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
SpUnKyMe Posted September 3, 2011 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
JR10 Posted September 3, 2011 Posted September 3, 2011 Spunky, use [lua] tags. 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
triplesnake Posted September 3, 2011 Posted September 3, 2011 i was writing the last line and then spunky posted lolz http://www.blueptp.com/credit.php?pseudo=wedo331
triplesnake Posted September 3, 2011 Posted September 3, 2011 jr can u give me a little help even just a start? in the topic below with 1 http://www.blueptp.com/credit.php?pseudo=wedo331
Castillo Posted September 3, 2011 Posted September 3, 2011 triplesnake, don't double post please. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
triplesnake Posted September 3, 2011 Posted September 3, 2011 ok i didnt know thats double posting but no one seemed to be have read the topic http://www.blueptp.com/credit.php?pseudo=wedo331
JR10 Posted September 3, 2011 Posted September 3, 2011 tiesjan, you will find the wiki useful: https://wiki.multitheftauto.com/wiki/Main_Page 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