Jump to content

Help with addCommandHandler


dzek (varez)

Recommended Posts

Posted

#1

I think you don't have the idea what resource is. Click here for some info and here for even more.

Simple command (server-side)

  
function stuckMSG(player) 
  outputChatBox(getPlayerName(player)..": Help! I'm stuck!", getRootElement(), 255, 255, 255, true) 
end 
addCommandHandler("stuck", stuckMSG) 
  

#2

There is resource called welcome_window on the MTA community. Unfortunately - it's not having tabs support. I've got one resource with tabs - I'll post it today (later) on the community, so you will be able to download and use it.

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)!

Posted
So, Where should i put these words? in what file?

I gave you some links. Just read them and you will know everything. I can copy and paste it there on the forums, but this makes no sense..

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)!

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...