Mr.P.C

A pinned step by step guide in one place.

Recommended Posts

Im new to this whole scripting thing and have no experience what so ever in doing any of it.

I would really like to get the script working on my MTA SA server but the whole thing has really confused my brain to the max.

Would somebody be able to post a step by step guide to the latest version for people like me?

And then it could maby get pinned so other new people don’t have to search as hard?

Sorry if this seems like spam but i am really stuck here and have never come across anything like this before.

Thanks in advance

Share this post


Link to post

Well first you should get to know theese.

;////////////

;// Events //

;////////////

on *:SIGNAL:mta.action: {

;Parameters:

;$1 = Server

;$2 = ID

;$3- = Action

}

on *:SIGNAL:mta.adcon: {

;Parameters:

;$1 = Server

;$2 = ID

;$3- = Text

}

on *:SIGNAL:mta.addban: {

;Parameters:

;$1 = Server

;$2 = 0/1 (failed/success)

;$3 = IP

}

on *:SIGNAL:mta.command: {

;Parameters:

;$1 = Server

;$2 = ID

;$3- = Command

}

on *:SIGNAL:mta.connect: {

;Parameters:

;$1 = Server

}

on *:SIGNAL:mta.death: {

;Parameters:

;$1 = Server

;$2 = ID

}

on *:SIGNAL:mta.disconnect: {

;Parameters:

;$1 = Server

;$2 = 0/1/2/3/4/5/6/7 (User/Incorrect password/Already connected/Timed-out/To much connections/Banned/Name in use/Invalid Version)

}

on *:SIGNAL:mta.endrace: {

;Parameters:

;$1 = Server

;$2 = Race ID

;$3 = Winner ID

}

on *:SIGNAL:mta.freeze: {

;Parameters:

;$1 = Server

;$2 = ID

;$3 = Trigger ID

;$4 = 0/1 (failed/success)

}

on *:SIGNAL:mta.join: {

;Parameters:

;$1 = Server

;$2 = ID

}

on *:SIGNAL:mta.login: {

;Parameters:

;$1 = Server

;$2 = ID

;$3 = Level

;$4 = 0/1/2 (success/failed/already logged in)

}

on *:SIGNAL:mta.mute: {

;Parameters:

;$1 = Server

;$2 = ID

;$3 = Trigger ID

;$4 = 0/1 (failed/success)

}

on *:SIGNAL:mta.nick: {

;Parameters:

;$1 = Server

;$2 = ID

}

on *:SIGNAL:mta.part: {

;Parameters:

;$1 = Server

;$2 = ID

;$3 = 0/1/2/3 (parted/kicked/banned/timed-out)

}

on *:SIGNAL:mta.pm: {

;Parameters:

;$1 = Server

;$2 = ID

;$3 = ToID

;$4 = Text

}

on *:SIGNAL:mta.quit: {

;Parameters:

;None

}

on *:SIGNAL:mta.startrace: {

;Parameters:

;$1 = Server

;$2 = Race ID

;$3 = 0/1/2 (success,failed,no players)

}

on *:SIGNAL:mta.racelist: {

;Parameters:

;$1 = Server

}

on *:SIGNAL:mta.setpassword: {

;Parameters:

;$1 = Server

;$2 = 0/1/2 (failed/success/disabled)

}

on *:SIGNAL:mta.setmaxplayers: {

;Parameters:

;$1 = Server

;$2 = 0/N (failed,set to N)

}

on *:SIGNAL:mta.shutdown: {

;Parameters:

;$1 = Server

;$2 = 0/1/2 (success/waiting/disabled)

}

on *:SIGNAL:mta.start: {

;Parameters:

;None

}

on *:SIGNAL:mta.text: {

;Parameters:

;$1 = Server

;$2 = ID

;$3- = Text

}

on *:SIGNAL:mta.unban: {

;Parameters:

;$1 = Server

;$2 = 0/1 (failed/success)

;$3 = IP

}

on *:SIGNAL:mta.unfreeze: {

;Parameters:

;$1 = Server

;$2 = ID

;$3 = Trigger ID

;$4 = 0/1 (failed/success)

}

on *:SIGNAL:mta.unmute: {

;Parameters:

;$1 = Server

;$2 = ID

;$3 = Trigger ID

;$4 = 0/1 (failed/success)

}

Share this post


Link to post
And how does that magic work? I would like to know ffs i host a server :evil:

1) find your brain

2) fix the brain

3) use the brain

Share this post


Link to post
And how does that magic work? I would like to know ffs i host a server :evil:

1) find your brain

2) fix the brain

3) use the brain

a little harsh, but funny...

Share this post


Link to post

1) find your brain

2) fix the brain

3) use the brain

Well I say very immature. Im having trouble trying to get this to work and all I get are comments like that.

If nobody here wants to help me well then that’s fine, I thought the MTA community was a bit more mature than that.

I am very disappointed in you people

Even just a hyper-link to the right place would have been nice. Foget about it. The server runs great without it

Share this post


Link to post

1) find your brain

2) fix the brain

3) use the brain

Well I say very immature. Im having trouble trying to get this to work and all I get are comments like that.

If nobody here wants to help me well then that’s fine, I thought the MTA community was a bit more mature than that.

I am very disappointed in you people

Even just a hyper-link to the right place would have been nice. Foget about it. The server runs great without it

Don't mind CeoZ, nearly all his comments are like that..

Anyway, if you want to learn scripting, I suggest you ask someone who is really experienced in it, you can find a lot of good scripters on servers, if you find a server with scripts, just ask who made them and ask them if they wanna help you.

About that long list of text someone just posted, dont get scared about that, it are signals and such which you will learn when you start scripting.

Those will come later, just learn the basics first.

Share this post


Link to post

  • Recently Browsing   0 members

    No registered users viewing this page.