Jump to content

making a simple script


tiesjan

Recommended Posts

Posted

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 :D

Posted (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 by Guest

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...