Jump to content

BooM

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by BooM

  1. hello, help on this plz, :shock: alias ini :evil:

    on *:SIGNAL:mta.command:{

    if ($3 == !warned) {

    var %a = 0,%b = $null

    while (%a < 32) {

    if ($readini(%dir $+ $1.ini,ID $+ %a,warns) >= 1) %b = %b $mta.name($1,%a)

    !inc %a

    }

    if (%b == $null) mta.say $1 No players currently warned.

    else mta.say $1 Current warned players: %b

    }

    elseif ($3 == !unwarn) {

    if %b == -1 mta.say $1 Error - Absent ID

    else {

    if $readini($mta.dir $+ $1.ini,ID $+ %b,warns) >= 1 {

    var %c = $calc($readini($mta.dir $+ $1.ini,ID $+ %b,warns) -1)

    !writeini -n $+(",$mta.dir,$1.ini") ID $+ %b warns %c

    mta.say $1 $mta.name($1,$2) unwarned $mta.name($1,%b) $+ . %c warnings remaining.

    else mta.msg $1 $2 $mta.name($1,%b) unwarned. %c warnings remaining.

    }

    else mta.msg $1 $2 $mta.name($1,%b) is not warned.

    }

    }

    elseif $3 == !warn {

    if %b == -1 mta.msg $1 $2 Error - Absent ID

    else mta.warn $1 $2 %b $5-

    }

    }

    }

    alias mta.warn {

    var %a = $readini($mta.dir $+ $1.ini,ID $+ $3,warns)

    if $calc(%a + 1) == $readini($mta.dir $+ options.ini,main,warns) {

    if ($4 != $null) {

    mta.say $1 $mta.name($1,$3) $+ : Final warning. Reason: $4- $+ . Goodbye.

    mta.kick $1 $3

    }

    else {

    mta.say $1 $mta.name($1,$3) $+ : Final warning. Goodbye.

    mta.kick $1 $3

    }

    }

    else {

    if ($4 != $null) {

    mta.say $1 $mta.name($1,$3) warned $+ by $mta.name($1,$2)) $+ . $calc($readini($mta.dir $+ options.ini,main,warns) - $calc( %a + 1 )) more warnings and you will be kicked. Reason: $4-

    !writeini " $+ $mta.dir $+ $1 $+ .ini" ID $+ $3 warns $calc(%a + 1)

    }

    else {

    mta.say $1 $mta.name($1,$3) warned by $mta.name($1,$2)) $+ . $calc($readini($mta.dir $+ options.ini,main,warns) - $calc( %a + 1 )) more warnings and you will be kicked.

    !writeini " $+ $mta.dir $+ $1 $+ .ini" ID $+ $3 warns $calc(%a + 1)

    }

    }

    }

    its sorta works

    BooM: !warn BooM

    Unknown warned by BooM. -1 more warnings and you will be kicked.

    BooM: !warned

    No players currently warned.

    BooM: !warn BooM

    Unknown warned by BooM. -2 more warnings and you will be kicked.

    BooM: !warn BOO

    Unknown warned by BooM. -3 more warnings and you will be kicked.

    BooM: !UNWARN BO

    BooM unwarned Unknown. 2 warnings remaining.

    lol

    thx :(

  2. on *:SIGNAL:mta.command: {

    if ($3 == !warn) {

    if (%a == -1) mta.msg $1 $2 Error - Absent ID.

    elseif (%a == $2) mta.msg $1 $2 Error - Can't warn yourself.

    else {

    !writeini " $+ $scriptdir $+ mta.warns.ini" WARNINGS $mta.name($1,%a) $calc($mta.warns($1,%a) + 1)

    if ($mta.warns($1,%a) >= 0) {

    mta.say $1 Kicking $mta.name($1,%a) for reaching the warnings limit. $iif($5,Reason: $5-)

    mta.kick $1 %a

    }

    else mta.say $1 $mta.name($1,%a) $+ , $replace($mta.warns($1,%a),1,first,2,second,3,third) warning. $calc(3 - $mta.warns($1,%a)) more warnings and you will be kicked.

    }

    }

    elseif ($3 == !unwarn) {

    if (%a == -1) mta.msg $1 $2 Error - Absent ID.

    elseif (%a == $2) mta.msg $1 $2 Error - Can't unwarn yourself.

    else {

    !writeini " $+ $scriptdir $+ mta.warns.ini" WARNINGS $mta.name($1,%a)

    if ($mta.warns($1,%a) >=3) {

    mta.say $1 unwarned $mta.name($1,%a)

    }

    }

    }

    elseif ($3 == !warned) {

    var %a = 0,%b = $null

    while (%a < 32) {

    if ($readini(%dir " $+ $scriptdir $+ mta.warns.ini" WARNINGS $mta.name($1,%a)

    !inc %a

    }

    if (%b == $null) mta.say $1 No players currently warned.

    else mta.say $1 Current warned players: %b

    }

    __________________________________________________________________________________________________________

    hey can u help me out with the warn script plz eney 1 :roll: /me crys help!!

  3. WELL HERE MTA O.5 !ADMINS > sa oR 0.5

    ;PLAYERS COMMANDS

    if (!admin* iswm $3) {

    var %a = 0,%b,%c

    while (%a <= $mta.maxplayers($1)) {

    if ($mta.level($1,%a) >= 6) %b = $iif(%b,%b $+ $chr(44) $mta.name($1,%a),$mta.name($1,%a)) $+ (Level: $mta.level($1,%a) $+ )

    elseif ($mta.level($1,%a) >= 2) %c = $iif(%c,%c $+ $chr(44) $mta.name($1,%a),$mta.name($1,%a)) $+ (Level: $mta.level($1,%a) $+ )

    !inc %a

    }

    mta.say $1 $iif(%b,Admins: %b,No admins currently present but we are allways watchin ;) .)

    if (%c) mta.say $1 ViP's: %c

    HOPE THIS MIGHT HELP ?

  4. Yes, you do use MTA:mA, else how do you connect to your server from mirc... In it's options you have to enable Admin+. !tempban and !stfu you can find in here, just search properly. Have posted !tempban few days ago somewhere here

    aha asif i nver saw that there lol thx ill test it now get bk to u ;):oops:

  5. You have to turn on Admin+ in MTA:mA settings

    erm i dont use mta:mta or grs dont think the script is workin elseif (($3 == !hp) || ($3 == !health)) $iif(%a == -1,mta.msg $1 $2 Error - Absent ID,mta.say $1 $mta.name($1,%a) $+ 's health: $mta.health($1,%a)) that shoude !hp boom booms hp is 100 < well l thats what i wont it to do .. thx and 1 more thing !tempban < !tempban i tried tried and tried agian,NO luck so i guess im askin u make me if that possible plz qoute !hp !tempban !stfu < shoulde finish my script off thx Note if u say sach this fourm u will find that dont work i need new 1 plz help boom,

×
×
  • Create New...