Jump to content

lil Toady

Retired Staff
  • Posts

    2,318
  • Joined

  • Last visited

Posts posted by lil Toady

  1. MTA:mA version 4.15 edited by lil_Toady (Unofficial)

    Fixes/Changes:

    * A bit changed dialog:

    - Took off the mta version box, since now it's being set automaticly

    - Added Connect/Disconnect button to the dialog itself

    - Added 'Unban IP' and 'Update Races List' to the Server options

    - Server settings boxes are being disabled when connected, that will prevent time outs that could be caused by editing this boxes. And * sign is now added to server names in tabs when connected, so you will always know what servers are connected.

    - Default number of tabs set to 8

    * Fixed races list recieving error with version 1

    * Races list is being updated untill it gets all the maps

    * Some little tweaks

    Download here or here

  2. /*
    RaceList Updater v1.1 by lil_Toady
    Special thanks to [uVA]Scooby
    Updated by Aeron
    
    The script will be automaticly updating the races list untill it gets all the maps.
    If you still think it is missing maps do: !updateraces     (admins level 2)
    
    If you want to put it into your script here are the aliases you'd want to know:
    mta.races.check       - Checks for missing maps, if so it starts the updater (not accurate)
    mta.races.update      - Starts the updater
    */
    on *:SIGNAL:mta.command:{
     if (!updaterace* iswm $3) {
       if ($mta.level($1,$2) > 1) {
         mta.text $1 Updating the race list.
         mta.races.update $1
       }
     }
    }
    on *:SIGNAL:mta.racelist:{
     mta.races.check $1
    }
    alias mta.races.check {
     var %a = $ini($mta.dir $+ $1.ini,Races,0),%b = $ini($mta.dir $+ $1.ini,Races,%a)
     if (%b > %a) mta.races.update $1
    }
    alias mta.races.update {
     mta.echo $1 * Racelist: Updating...
     !bset &b 1 109 0 $did(mta,$1 $+ 22) $mta.dex($did(mta,$1 $+ 12)) 124 $mta.dex(mta.races. $+ $rand(1000,9999)) 0
     !sockudp -k mta.races.sock. $+ $1 $did(mta,$1 $+ 10) $did(mta,$1 $+ 11) &b
     !.timermta.races.timer. $+ $1 1 10 !sockclose mta.races.sock. $+ $1
    }
    on *:udpread:mta.races.sock.*: {
     !sockread &a
     var %a = $right($sockname,-15),%b = $bvar(&a,3),%c = $bvar(&a,2)
     if (%c == 1) {
       mta.echo %a * Racelist: Updating failed. ( $+ $gettok(User:Incorrect password:Already connected:Timed-out:To much connections:Banned:Name in use:Invalid Version,$calc(%b + 1),58) $+ )
       if (%b == 5) mta.unban %a $ip
       elseif (%b == 1) mta.echo %a * Racelist: Updating stopped.
       else !.timermta.races.timer. $+ $1 1 15 mta.races.check %a
       !sockclose $sockname
     }
     elseif (%c == 2) {
       !bset &b 1 109 2
       !sockudp -k $sockname $did(mta,%a $+ 10) $did(mta,%a $+ 11) &b
     }
     elseif (%c == 18) {
       if ($mta.server(%a).version == 2) {
         if (%b == 1) {
           %c = $calc($bvar(&a,5) * 256 + $bvar(&a,4))
           if (!$readini($+($mta.dir,%a,.ini),Races,%c)) {
    if (!$didreg(mta,%a $+ 16,$didreg(mta,%a $+ 16,$bvar(&a,6,50).text))) !did -a mta %a $+ 16 $bvar(&a,6,50).text
             !writeini -n $+(",$mta.dir,%a,.ini") Races %c $bvar(&a,6,50).text
             !sockmark $sockname $calc($sock($sockname).mark + 1)
           }
         }
         elseif (%b == 2) {
           mta.echo %a * Racelist: Updated. ( $+ $iif($sock($sockname).mark,$v1,No) missing maps retrieved)
           !bset &b 1 109 1
           !sockudp -k $sockname $did(mta,%a $+ 10) $did(mta,%a $+ 11) &b
           !sockclose $sockname
           !.timermta.races.timer. $+ %a off
           !.signal mta.racelist %a
         }
       }
     }
    }
    on *:SIGNAL:mta.disconnect:{
     if ($sock(mta.races.sock. $+ $1)) {
       !bset &b 1 109 1
       !sockudp -k mta.races.sock. $+ $1 $did(mta,%a $+ 10) $did(mta,%a $+ 11) &b
       !sockclose mta.races.sock. $+ $1
       !.timermta.races.timer. $+ $1 off
     }
    }

    Fixed the text in mta chat box not returning the value of retrieved maps

    Fixed the bug with race not being added to the races list in mtama dialog

    *updated the link

  3. Well, since nobody have done that before, me and [uVA]Scooby have written this, a script that will be getting missing maps from the server untill it gets all of them so you wont have any missing maps since now. :P

    You don't have to do anything, it will start the process as soon as you connect your mtama to a server, but if you think that u still have some maps missing you can do !updateraces.

    I think thats all, clicky

    Enjoy :D

  4. You can ban by DNA nucleotide sequence: it doesn't matter. It WILL be spoofed, and it WILL be circumvented. Don't want cheaters? Turn off your server. There is no foolproof method of banning.

    Yeah, i totally agree. It's better to have a bit more good admins to watch for the cheaters and ban em the good old way. (Not like you can remember Boss, when in mta0.x there was only one admin on gta.ru, who didnt give any admin rights to other players and who didnt even join the server much himself :P)

  5. Well, banning by CPU id doesn't look that good too as there are many ways to go round it. That id has to be sent from the client which is very unsecure, any packet changing will solve your ban. You know that there were lots of bots and client injectors in mta0.x, if they make such for mta:sa they will send any CPU Id they want they could even abuse it. Imagine, a player joins my server, i get his cpu id, then go and hook my mta client to send that cpu id of another player and he gets banned for me everywhere

  6. Out of those 200 innocents, how many will be MTA players, and out of that extremely small percentage, how many of them will want to play on your server?

    That's the point, they ban thousands of people, and about 100-200 players who visit their server (/me knows that, /me is russian too)

  7. 1) When a player joins, would the current hay bails be cynced for him?

    2) If any rock falls and destroys every hay bail below, would all the players still be able to climb to the top?

    3) I have also noticed, that someone's nick was cut as it was too long. IS there any way to avoid it and if yes, why wasn't it made in the video?

    4) Is there any way to manage text outputs, like moving them to any point on the screen, changing styles, fonts, sizes etc? If yes, could you please give a sample of the needed function?

    1) Yes it will be synced for everyone

    2) I'm not sure about this

    3/4) Those text displays were made by scripting and you can change their position, size, color etc. It was probably not changed in the video cause of lazy scripter :P

    [lua]textCreateTextItem ( string text, float x, float y, priority, R, G, B, Alpha, Scale )

    --This will display "hello" in the center of player's screen

    textDisplay = textCreateDisplay ()

    textItem = textCreateTextItem ( "hello", 0.5, 0.5, 1, 0, 0, 255, 255, 3 )

    textDisplayAddText ( textDisplay, textItem )

    textDisplayAddObserver ( textDisplay, myPlayer ) --Display it for myPlayer only[/lua]

  8. I got one,

    I think i have gave u the script by the way don't know :S

    Make a !spawn & !get script

    Hmm don't know anything else!!

    not possible with mta:ma scripting

×
×
  • Create New...