Jump to content

lil Toady

Retired Staff
  • Posts

    2,318
  • Joined

  • Last visited

Posts posted by lil Toady

  1. on *:SIGNAL:mta.command:{
     if (!%command [ $+ [ $1 ] $+ [ $3 ] ]) {
       set -u3 %command [ $+ [ $1 ] $+ [ $3 ] ] 1
    
     }
     else mta.msg $1 $2 Please don't use the command $+(',$3,') so much.
    }

  2. do it like this:
    !writeini -n " $+ $scriptdir $+ players.ini" PLAYERS $calc(players+1)

    or this

    !writeini -n " $+ $scriptdir $+ players.ini" PLAYERS $gus.add(players,1)

    none of those will work

    do it like this:

    on *:SIGNAL:mta.join:{
     !writeini -n " $+ $scriptdir $+ players.ini" PLAYERS $mta.nick($1,$2) $calc($readini($scriptdir $+ players.ini,PLAYERS,$mta.nick($1,$2)) + 1)
    }

  3. on *:TEXT:*:%echochan:{
     do.echo $1-
    }
    on *:INPUT:%echochan:{
     do.echo $1-
    }
    alias do.echo {
     if ($1 == !players) {
       var %a = 0,%b,%c = %echoserver
       while (%a <= $mta.server(%c).cmax) {
         if ($mta.nick(%c,%a) != Unknown) %b = $iif(%b,%b $+ $chr(44) $mta.nick(%c,%a),$mta.nick(%c,%a))
         !inc %a
       }
       msg %echochan Players: $iif(%b,$v1,None)
     }
    }

    make sure %echochan is set to your channel and %echoserver is set to your server ID

  4. on *:TEXT:*:%echochan: {
     if ($1 == !players) {
       var %a = 0,%b,%c = %echoserver
       while (%a <= $mta.server(%c).cmax) {
         if ($mta.nick(%c,%a) != Unknown) %b = $iif(%b,%b $+ $chr(44) $mta.nick(%c,%a),$mta.nick(%c,%a))
         !inc %a
       }
       echo %echochan Players: $iif(%b,$v1,None)
     }
    }

  5. Isn't it smart to add this?[syntax=mIRC]on *:SIGNAL:mta.adcon:{

    if (!updaterace* iswm $3) {

    mta.text $1 Updating the race list.

    mta.races.update $1

    }

    }[/lua]

    umm.. its there, but for level 1+ admins

  6. I was thinking, instead of booting another .exe why not add the option in single player so you can hop between multiplayer and single player?

    That will reque some file changing, which violates the EULA, easier to add a Single Player button to mta, but that doesn't make sense

  7. im running MTAMA v4.15

    and i tried the command, and same thing, except recived even less maps.

    Well, it wont get all the maps from the first try. It will be getting them untill it gets all, that could take some time

  8. The server still cannot retrieve the entire map list with this script running, its only retrieving 46 maps out of the 77 that are on the server.

    any ideas?

    do !updateraces in mta or download an mtama with already built in updater :P

  9. :? hmm, Admin+ on?

    Yes, if put its $mta.vehicle($1,$4).vehicle, its returning number of the car (only the ID), but i want whole vehicle name.

    damn told you that $mta.vehicle has no .vehicle prop, cant you read? :evil: it will return the same as just $mta.vehicle, you need $mta.vehicle($1,$4).name to return the name of the vehicle

    If even $mta.vehicle($1,$4).name doesnt work make sure that you have original mta.data.ini in your mtama dir

×
×
  • Create New...