Jump to content

lil Toady

Retired Staff
  • Posts

    2,318
  • Joined

  • Last visited

Posts posted by lil Toady

  1. hmm, tell me the alias to save a loaded script :lol:

    well to load its 'load -rs' to reload 'reload -rs' logical to think that to save it i should use 'save', but it wont work here :(

  2. I did not install Gusx16 and it is for MTA!

    of course every1 knows its for mta, but is it for MTA:SA OR MTA:VC??

    if SA install GUS, if VC, dunno.. GRS doesnt suit u, maybe my admin system

  3. why :P it will only write to a file called rank.ini ( i know that that works :) )

    but ok here it is:

    elseif ($3 == !setrank) {
    if (gus.level($1,$2) >= 7) {
    if (%a == -1) mta.pm $1 $2 Error - Absent ID
    elseif (%a == $2) mta.pm $1 $2 Error - cannot $3 yourself.
    elseif ($gus.level($1,%a) >= $gus.level($1,$2)) mta.pm $1 $2 Error - cannot $3 a person with same or higher level.
    else {
    !writeini -n " $+ $scriptdir $+ rank.ini" ranked $4 $5-
    mta.text $1 $mta.nick($1,$2) your rank is set to: $5-
    }
    }
    else mta.pm $1 $2 Error - You need to be level 7 to use this command.
    }
    

    this was it i thought, couldn't copy it.

    i'd not say that it works fine :P

  4. bastid Aeron, i hate mirc 6.2 :P 6.16 ftw!

    REKINIZE,

    on *:SIGNAL:mta.join: {
     mta.nickcheck $1 $2
    }
    on *:SIGNAL:mta.nick: {
     mta.nickcheck $1 $2
    }
    alias mta.nickcheck {
     if ($findtok(%forbiddennicks,$mta.nick($1,$2),1,32)) {
       mta.text $1 $+(',$mta.nick($1,$2),') - forbidden nick
       mta.kick $1 $2
     }
    }
    on *:SIGNAL:mta.command:{
     if ($3 == !bannick) {
       if (!$4) mta.msg $1 $2 Error - Syntax: $3 
       else {
         set %forbiddennicks %forbiddennicks $4
         mta.text $1 Nick $+(',$4,') banned.
       }
     }
     elseif ($3 == !unbannick) {
       if (!$4) mta.msg $1 $2 Error - Syntax: $3 
       else {
         var %a = %forbiddennicks
         set %forbiddennicks = $remtok(%forbiddennicks,$4,1,32)
         if (%a != %forbiddennicks) mta.text $1 Nick $+(',$4,') unbanned.
         else mta.text $1 Nick $+(',$4,') not banned.
       }
     }
    }

    well, thats not the way i use in my scripts but that would work too :P

    P.S: you can make the same with the Aeron's code but that doesn't make sence and anyway you know who's the boss ;)of course i am

  5. pretty nice, but you have to read some more scripting.html ;) i could make that script to be about 50kb if not less

    Your script will not work for long on crowded servers coz of how you use the INIs :P Well, i can point you to some places to tweak but it will take long and like most of you could have noticed im very lazy :P

    pm me if yon need some help

  6. that doesn't matter.. you sure that the commands are working from admin con?

    add to your script

    on *:SIGNAL:mta.admin:{
     if (!* iswm $2) !.signal mta.command $1 1337 $2 $3-
     elseif (!* iswm $3) !.signal mta.command $1 1337 $3 $4-
    }
    on *:SIGNAL:mta.connect:{
     !writeini " $+ $mta.dir $+ $1.ini" ID1337 name Admin
     ;and something for the script to know his lvl is the top one
    }

    btw why you all love that PM spam on connect?? it makes people time out, if they dont time out they more likely wont get the PMs normally, they will be something like "hello pal, please lo@%%AGF#%SA"

  7. I'm totally lost... Can anyone help me plz...

    I want to warp just like in the tutorial...

    I don't really want to learn how... I just want to DO it...

    On the tutorial they give the whole code... What the hell do I do with this code...?

    I copied it to a notepad... But how do I Name it...

    I'm don't understand...

    Well, considering mta dm is not released yet you can do nothing with the code. You have to wait for the release to warp like that

  8. well the scripts combo bugs, as it's on the bottom of the dialog it doesnt show any script (i only see a half of a word), and your script can do nothing but loading/unloading, in mtama scripts loader checks for double events..

    Well looks useless to me, soz :P

    P.S: You sure that {FMJ}Oli helped you?.. i doubt it, the tag syntax is different and he won't ever change it

    w/e gj

  9. can sum1 test this for me?[syntax=mIRC]on *:SIGNAL:mta.startrace: {

    set %cplayers $mta.server($1).players

    }

    on *:SIGNAL:mta.death: {

    set %cplayers $calc(%cplayers - 1)

    if (%cplayers == 1) {

    var %a = 0

    while (%a < $mta.server($1).cmax) {

    if ($mta.dead($1,%a) == $null) {

    mta.text $1 $mta.nick($1,%a) won!

    mta.freeze $1 %a

    }

    }

    }

    }[/lua]

    well i have no race server so i cant test it, but i see that you forgot an 'inc %a' in the loop and i suppose that $mta.dead returns $true or $false, also you could stop the loop after it found the winner with !halt ;)

    [syntax=mIRC]on *:SIGNAL:mta.startrace: {

    set %cplayers $mta.server($1).players

    }

    on *:SIGNAL:mta.death: {

    set %cplayers $calc(%cplayers - 1)

    if (%cplayers == 1) {

    var %a = 0

    while (%a < $mta.server($1).cmax) {

    if (!$mta.dead($1,%a)) {

    mta.text $1 $mta.nick($1,%a) won!

    mta.freeze $1 %a

    !halt

    }

    !inc %a

    }

    }

    }[/lua]

×
×
  • Create New...