Tommis

MTA:SA General Use Scripts | Final Version!

Recommended Posts

Hey,

Just type !setping , i added that also with this new version x14.

Good Luck.

[XE]Tommis

Share this post


Link to post

Is it possible to make the stats only record if there are a certain number of people on the server?

Share this post


Link to post
Um yes, but what is the point to that?

well one guy on his own on a empty server would more than likely get a faster time then if on a full server with everyone bumping into each other ;):)

we have your stats and Aerons both running pulling off the data into a webpage, but was trying to make it a little more fair by only allowing "race conditions" i.e at least a few people to race against so stats are a bit more competitive then.

Do hope new version of MTA address's cheaters we have had to reset the stats recently due to cheats ruining it.

for those interested link to stats below....

http://www.uocukgames.co.uk/mta/stats/index.php

Share this post


Link to post

Hey,

Just a update, im going to update this script one more time, fixing and adding some stuff and release a final version. Then i will be waiting for the release of MTA:Deathmatch and start working on scripts for that.

Cya,

[XE]Tommis

Share this post


Link to post

True.. I dont really think you need to implant more features to it.. As many people are waiting for the DM version, people can get allong with these scripts, I think..

Share this post


Link to post

ok ..

for this or next version ?

!permmute

so when a player reconnects and hes on the mute list he gets muted

a bit less drastic than !ban, but still helping a looooot

this might not be a lot of work, but im afraid ill mess it up or ill ruin the !ban system at all

Share this post


Link to post

Hey,

Yes, that will probably be a STFU command a i might add a duration too. Like !stfu . Dunnw, but thanks for the idea.

Yours,

[XE]Tommis

Share this post


Link to post
Hey,

Just a update, im going to update this script one more time, fixing and adding some stuff and release a final version. Then i will be waiting for the release of MTA:Deathmatch and start working on scripts for that.

Cya,

[XE]Tommis

how long before til we can expect the next update?

Share this post


Link to post

Hey,

Final version released, x16. Download on page 1 or here:

http://www.mta-xe.com/gus/GUSx16.zip

PS: This is admin, RPG is scraped for not needed, and slowing down scripts. I will make that a external script. This is Admin.

Cya,

[XE]Tommis

Share this post


Link to post

Is this script deleting all my maps ?

[13:50] * Endrace: Race "Canyon Hights" ended.

[13:50] * Startrace: Success to start race "Unknown".

[13:50] Map "Unknown" has been removed, changing to a random map..

[13:50] * Endrace: Race "Unknown" ended.

[13:50] * Startrace: Success to start race "Airport fight".

Map vote starts

peeps vote for map "pimp my ride"

server says :

Map "Unknown" has been removed, changing to a random map..

Is this normal or are there better scripts for the server ?

Greetz :wink:

Share this post


Link to post

Ok i founded a way to get around this bug.

This script does not allow more then ~450 maps on the server to work properly.

Greetz

Share this post


Link to post

Hey,

That is the Server and Areons mistake, not mine. Sorry.

Cya,

[XE]Tommis

Share this post


Link to post
Guest
Ok i founded a way to get around this bug.

This script does not allow more then ~450 maps on the server to work properly.

Greetz

lol, it does, i had this problem once(i have 3400 maps so imagine how long it took for my server to find a map not known as unknown:P)you did !remmap in a map known as unknown, just remove the line where the map unknown is in in remmaps.ini and your problem will be solved;)

Share this post


Link to post

If you when you typed !set had the wrong name just open c:\program\General Use Scripts\admin.ini

[sET]

SET=1

[ADMIN]

Hedning=10

[iP]

Hedning=127.0.0.1

Just change the name you want to have level 10 on.

I dont know if many ppl now this but i post it anyway.

Edit:

Is it possible when you write !commands and you get this !popular, !stats, !admin, !top, !toptime, !max, !rating, !voterace

To add !Funstuff

So when you write !commands youu now get !popular, !stats, !admin, !top, !toptime, !max, !rating, !voterace !Funstuff

Edit2:

This is ok now!

|

|

|

|

\/

-------------------------------------------------------------------------------------------

And when you write !Funstuff it will work like !commands but it will show stuff like !Hello !Suck !Looser !Lucky !You !Dead

And when you write one of this it will show da golden msg

!Hello ---> Hello world!

!Suck ---> You suck man!

!Looser ---> Haha looser!

!Lucky ---> Lucky bastard!

!You ----> You can do it!

!Dead ---> You are so dead!

And tell me how i add it, wich file to add the script in, adn where.

---------------------------------------------------------------------------------------

The code:

on *:SIGNAL:mta.command: {
 if (!Funstuff == $3) {
   mta.text $1 !Hello, !Suck, !Looser, !Lucky, !You, !Dead
 } 
on *:SIGNAL:mta.command: {
 if (!Hello == $3) {
   mta.text $1 Hello world!
 } 
on *:SIGNAL:mta.command: {
 if (!Suck == $3) {
   mta.text $1 You suck man!
 } 
on *:SIGNAL:mta.command: {
 if (!Looser == $3) {
   mta.text $1 Haha looser!
 } 
on *:SIGNAL:mta.command: {
 if (!Lucky == $3) {
   mta.text $1 Lucky bastard!
 } 
on *:SIGNAL:mta.command: {
 if (!You == $3) {
   mta.text $1 You can do it!
 } 
on *:SIGNAL:mta.command: {
 if (!Dead == $3) {
   mta.text $1 You are so dead!
 } 

But the command stuff i still need help at

Share this post


Link to post

Ye, you can add '!funstuff' to the commands list, just find in mtagus.mrc the words:

    else {
     mta.pm $1 $2 Commands: !info, !popular, !level, !upload, !ping, !stats, !admins, !toptime, !top
     mta.pm $1 $2 !max, !voterace, !rating
   }

that must be somewhere under '!commands' command, so just add '!funstuff' to that list.

And the command must look like this if it's in a different .mrc

on *:SIGNAL:mta.command: {
 if (!Funstuff == $3) mta.text $1 !Hello, !Suck, !Looser, !Lucky, !You, !Dead
 elseif (!Hello == $3) mta.text $1 Hello world!
 elseif (!Suck == $3) mta.text $1 You suck man!
 elseif (!Looser == $3) mta.text $1 Haha looser!
 elseif (!Lucky == $3) mta.text $1 Lucky bastard!
 elseif (!You == $3) mta.text $1 You can do it!
 elseif (!Dead == $3) mta.text $1 You are so dead!
}

if you want to add this to GUS remove the 'on *:SIGNAL:mta.command:{' and the last bracket here and put right under 'on *:SIGNAL:mta.command:{' in mtagus.mrc

Edit: btw, Tommis, your !commands thingy is such a crap :P you could do it a way better

Share this post


Link to post

its even possible to make the script autoreply on text

so if people type dead or hello orsome (without the ! ) they get a automessage

i have that on my server with a lot of words

example in my edited script lol gives a joke

of course this would get boring if its the same joke every time

but with a bit o randomness its quitte good

example

on *:SIGNAL:mta.text:{
 if ($3- == hello) {
   set %rand $rand(0,6)
   if (%rand == 0 ) mta.text $1 Automessage: Heeeey !!
   elseif (%rand == 1 ) mta.text $1 Automessage: Good day 
   elseif (%rand == 2 ) mta.text $1 Automessage: Hi !!!
   elseif (%rand == 3 ) mta.text $1 Automessage: Welcome 
   mta.pm $1 $2 if people are racing they'll respond later 
 }
}

notice set %rand $rand(0,6) picks a random number from 0 to 6

and there are only 4 if (%rand == 0 ) parts

so it will both give a random message each time . but it doesnt respond on every instance of hello (if random number is 4 5 or 6)... just for a bit o breathing space

however it always gives a pm to the one that said hello "if people are racing they'll respond later :P" ..

there are of course more commands you can make this way , and you dont need to do it my way :D .. but just to give you a idea :P

Share this post


Link to post
on *:SIGNAL:mta.text:{
 if (hello isin $3-) {
   set %rand $rand(0,6)
   if (%rand == 0 ) mta.text $1 Automessage: Heeeey !!
   elseif (%rand == 1 ) mta.text $1 Automessage: Good day 
   elseif (%rand == 2 ) mta.text $1 Automessage: Hi !!!
   elseif (%rand == 3 ) mta.text $1 Automessage: Welcome 
   mta.pm $1 $2 if people are racing they'll respond later 
 }
}

Could do it like that

on *:SIGNAL:mta.text:{
 if ($3- == hello) {
   var %r = $rand(1,4)
   mta.text $1 Automessage: $replace(%r,1,Hey!!,2,Hi!,3,Hello!,4,Good Day)
 }
}

Edited by Guest

Share this post


Link to post

Tx for the help

But i dont get it, how do i use this scriot ?

*:SIGNAL:mta.text:{
 if ($3- == hello) {
   set %rand $rand(0,6)
   if (%rand == 0 ) mta.text $1 Automessage: Heeeey !!
   elseif (%rand == 1 ) mta.text $1 Automessage: Good day 
   elseif (%rand == 2 ) mta.text $1 Automessage: Hi !!!
   elseif (%rand == 3 ) mta.text $1 Automessage: Welcome
   mta.pm $1 $2 if people are racing they'll respond later 
 }

I put in the file with my !hello !dead messages but it doesnt work.

Share this post


Link to post

woops

change

on blalbla.text {

if (hello) {
do this
}

to

on blalbla.text {

if (hello) {
do this
}

}

*:SIGNAL:mta.text:{
 if ($3- == hello) {
   set %rand $rand(0,6)
   if (%rand == 0 ) mta.text $1 Automessage: Heeeey !!
   elseif (%rand == 1 ) mta.text $1 Automessage: Good day 
   elseif (%rand == 2 ) mta.text $1 Automessage: Hi !!!
   elseif (%rand == 3 ) mta.text $1 Automessage: Welcome
   mta.pm $1 $2 if people are racing they'll respond later 
 }
}

or in lil Toady style

*:SIGNAL:mta.text:{
 if ($3- == hello) {
   var %r = $rand(1,6)
mta.text $1 Automessage: $replace(%r,1, Automessage:  Hey!!,2, Automessage: Hi!,3, Automessage: Hello!,4, Automessage: Good Day)
   mta.pm $1 $2 if people are racing they could respond later 
 }
}

:D:P

Could do it like that

on *:SIGNAL:mta.text:{
 if ($3- == hello) {
   var %r = $rand(1,4)
   mta.text $1 Automessage: $replace(%r,1,Hey!!,2,Hi!,3,Hello!,4,Good Day)
 }
}

sweet , tnx

( doubt ill change my

 if (lol isin $3-) {
   set %rand $rand(0,400)
[bigsnip]
   elseif (%rand == 107 ) {
     mta.text $1 Automessage:  How does a blond shut down Windows.
     !.timer 1 3 mta.text $1  She closes the curtains.
   }
 }

hehe

ps *nitpick*

f you want to add this to GUS remove the 'on *:SIGNAL:mta.command:{' and the last bracket here and put right under 'on *:SIGNAL:mta.command:{' in mtagus.mrc

+ the original first if command needs to be changed to elseif ;)

Edited by Guest

Share this post


Link to post

on *:SIGNAL:mta.command: {
 if (!Funstuff == $3) mta.text $1 !Hello, !Suck, !Looser, !Lucky, !You, !Dead, !Spitz, !Rille, !Hedning, !Fiddeman, !Fuck
 elseif (!Hello == $3) mta.text $1 Hello world!
on *:SIGNAL:mta.text:{
 if ($3- == hello) {
   var %r = $rand(1,4)
   mta.text $1 Automessage: $replace(%r,1,Hey!!,2,Hi!,3,Hello!,4,Good Day)
} 
 elseif (!Suck == $3) mta.text $1 You suck man!
 elseif (!Looser == $3) mta.text $1 Haha looser!
 elseif (!Lucky == $3) mta.text $1 Lucky bastard!
 elseif (!You == $3) mta.text $1 You can do it!
 elseif (!Dead == $3) mta.text $1 You are so dead!
 elseif (!Spitz == $3) mta.text $1 Jag spitz gillar killar!
 elseif (!Rille == $3) mta.text $1 Tar kort på killar!
 elseif (!Hedning == $3) mta.text $1 Da player!
 elseif (!Fuck == $3) mta.text $1 OHHHH YEAH!!
 elseif (!Fiddeman == $3) mta.text $1 Jag fidde gillar att göka med kuddar!
}

How do i use the code

*:SIGNAL:mta.text:{
 if ($3- == hello) {
   var %r = $rand(1,4)
   mta.text $1 Automessage: $replace(%r,1,Hey!!,2,Hi!,3,Hello!,4,Good Day)
} 

Have i added it right?

Edit:

Is it possible to do so when ex i play and when idrowned, the admins say HAHA drowned!

Or when i die

HAHA you suck

Share this post


Link to post

must look like this:

on *:SIGNAL:mta.command: {
 if (!Funstuff == $3) mta.text $1 !Hello, !Suck, !Looser, !Lucky, !You, !Dead, !Spitz, !Rille, !Hedning, !Fiddeman, !
 elseif (!Hello == $3) mta.text $1 Hello world!
 elseif (!Suck == $3) mta.text $1 You suck man!
 elseif (!Looser == $3) mta.text $1 Haha looser!
 elseif (!Lucky == $3) mta.text $1 Lucky bastard!
 elseif (!You == $3) mta.text $1 You can do it!
 elseif (!Dead == $3) mta.text $1 You are so dead!
 elseif (!Spitz == $3) mta.text $1 Jag spitz gillar killar!
 elseif (!Rille == $3) mta.text $1 Tar kort på killar!
 elseif (!Hedning == $3) mta.text $1 Da player!
 elseif (! == $3) mta.text $1 OHHHH YEAH!!
 elseif (!Fiddeman == $3) mta.text $1 Jag fidde gillar att göka med kuddar!
}
on *:SIGNAL:mta.text:{
 if (hello isin $3-) {
   var %r = $rand(1,4)
   mta.text $1 Automessage: $replace(%r,1,Hey!!,2,Hi!,3,Hello!,4,Good Day)
 }
}

and

if ($3- == hello) {

wont work, must be 'if (hello isin $3-) {'

Share this post


Link to post

Or when i die

HAHA you suck

try

on *:SIGNAL:mta.death: {
 mta.text $1 HAHA you suck mta.nick($1,$2)
 }
}

i dont think drowning message is possible

and

if ($3- == hello) {

wont work, must be 'if (hello isin $3-) {'

did i mention im a noob :P

but serious

i always use something isin $3

i just took the wrong example.

i had trouble with getting both hello and hell to work as text commands

i messed around a bit and this seemed to work

but i agree .. it should have been isin in the first example i placed

Share this post


Link to post

tx lil Toady works great!

coz:

Dont work, when i die i get "HAHA you suck mta.nick($1,$2)"

Edit: Tried to edit in on

*:SIGNAL:mta.text:{
on *:SIGNAL:mta.text:{
 if (lol isin $3-) {
   var %r = $rand(1,4)
   mta.text $1 Automessage: $replace(%r,1,haha!!,2,lol!,3,hihi!,4,hehe)
 }
}

so it looked like this in the file

on *:SIGNAL:mta.text:{
 if (hello isin $3-) {
   var %r = $rand(1,4)
   mta.text $1 Automessage: $replace(%r,1,Hey!!,2,Hi!,3,Hello!,4,Good Day)
 }
}
on *:SIGNAL:mta.text:{
 if (lol isin $3-) {
   var %r = $rand(1,4)
   mta.text $1 Automessage: $replace(%r,1,haha!!,2,lol!,3,hihi!,4,hehe)
 }
}

Hello works but not lol

Share this post


Link to post

  • Recently Browsing   0 members

    No registered users viewing this page.