-
Posts
2,318 -
Joined
-
Last visited
Posts posted by lil Toady
-
-
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) } -
i already posted a script to solve this, search the forum
-
everything lol, better just use it in a separate file untill somebody who really knows scripting puts it into gus
-
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
-
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) } } -
did sum1 test that script, coz I still don't know it's working for 100%... and if it's not working you have to ask XE-Clan for a good one
.Lol, im in XE clan.
you are not

-
omg [FIN]P_X_L, YES...
-
"DD or not DD, that is the question"!
-
(OVG)Santi, i've been on the forum for long and know that you can't script, so why don't you just listen to those who can?

-
most of that is possible with scripting
-
show what does your server output when you start it and what do you fill in your admin tool, i'm 100% sure that's your fault, not mta
-
ehm, just for nothing? go and download one of the released for public scripts.. like lots of the servers do
you posted in a wrong section btw
-
i started to dislike that tend to edit someones work without a permission
Well i think it's ok if you just edit it for yourself, but you kinda 'release' it also.. -
-
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
-
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
-
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
-
hmm, make sure those files are not read-only
-
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

-
Yeh, possible with scripting
-
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?
it will return the same as just $mta.vehicle, you need $mta.vehicle($1,$4).name to return the name of the vehicleIf even $mta.vehicle($1,$4).name doesnt work make sure that you have original mta.data.ini in your mtama dir
-
hmm, Admin+ on?
-
its $mta.vehicle($1,$4).name
-
that's cause mta.vehicle alias does not have an .vehicle propertie, so it returns just mta.vehicle (its id), what for you want to put that?

Command Flood script
in Add-ons
Posted · Edited by Guest
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. }