Jump to content

Lordkire

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by Lordkire

  1. The script is for MTA SA. And it's suposed to repeat everything ppl say in the server if an admin (lvl 5) turns it on using !repeat 1. An admin can also turn it off again using !repeat 0. So it's quite useless . And you also might need to know that I get the message "* /on: not connected to server (line 60, lkserver.mrc)" in my main mIRC window. And line 60 contains "on *:SIGNAL:mta.text: {" @[FIN]P_X_L: I tested the script and I saw something is wrong, but I can't find what, so that's why I'm posting it here. [edit] got an other question: how do i check wether a variable is set? if ($4 == ) {} doesn't work and if ($4 == *) doesn't work either
  2. Thanks alot! So in fact $mta.level(Server,PlayerID) is quite useless? I made this script now but it doesn't work: %repeat = 0 on *:SIGNAL:mta.command: { if ($3 == !repeat) { if ($mta.level($1,$2) > 4 && $4 == 1) { %repeat = 1 mta.text $1 The repeat function is now on. } elseif ($mta.level($1,$2) > 4 && $4 == 0) { %repeat = 0 mta.text $1 The repeat function is now off. } elseif ($mta.level($1,$2) > 4 && $4 !== 0 && $4 == 1) { mta.text $1 Only use "!repeat 1" to turn on and "!repeat 0" to turn off. } else { mta.text $1 You need to be admin level 5 or more to use this function! } } } on *:SIGNAL:mta.text: { if (%repeat == 1) { mta.text $1 $mta.nick($1,$2) just said: "$3" } } Do u guys see what's wrong?
  3. Sorry if this is a stupid question but i only started programming scripts today... There is this $mta.level(Server,PlayerID) thing that tells you the level of players, but is there a way to set this level (for example when a player types "!pass mypass")? I couldn't find anything in the scripting.html file. [edit]I also have an other question: is there a function to scange a player's nickname? I don't think so hu?
×
×
  • Create New...