Jump to content

My script Not working


FFCFoo

Recommended Posts

Can someone help me with my script here

On *:SIGNAL:mta.command:{ 
  var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) 
  if ($3 == !slap) { 
    if ($mta.level($1,$2) >= 1) { 
      mta.slap $1 %a 
    } 
  } 
  elseif ($3 == !kill) { 
    if ($mta.level($1,$2) >= 1) { 
      mta.slap $1 %a 
      mta.slap $1 %a 
      mta.slap $1 %a 
      mta.slap $1 %a 
      mta.slap $1 %a 
      mta.slap $1 %a 
    } 
  } 
  elseif ($3 == !id) { 
    mta.say $1 $mta.name($1,%a) $+ 's Id = %a 
  } 
  elseif ($3 == !bot) { 
    mta.say $1 To spawn cars type this exactly: (!sp <Your Name> <Car Name/ID>) 
    mta.say $1 To Teleport Type This exactly (!tp <your Name> <Person's Name>) 
    mta.say $1 To spawn weapon's type this exactly (!wep <your Name> <Weapon Name/ID>) 
  } 
  elseif ($3 == ![FFC]) { 
  mta.say $1 Flippin Foes Clan 
  } 
  elseif ($3 == ![GN]) { 
  mta.say $1 Green Nova's 
  } 
  elseif ($3 == !info) { 
  mta.say $1 [FFC]Basic v1 By.[FFC]Foo 
  } 
  elseif ($3 == !commands) { 
  mta.say $1 Public Command's:!sp,!tp,!bot,![FFC],![GN],!info,!id,!wep 
} 
On *:SIGNAL:mta.text:{ 
  if ($3 == brb) { 
    mta.say $1 $mta.name($1,$2) Will Be Right Back! Reason: $4- 
  } 
} 
On *:SIGNAL:mta.join: { 
  mta.msg $1 $2 Ask [FFC] If You Have Any Problems! 
  mta.msg $1 $2 To See How To Use The Bot Type !BOT 
  mta.msg $1 $2 [FFC]Bot Currently Running v1 Bot By:[FFC]Foo Help From:[sS]aTaN 
} 

what are the problem's :?:

Link to comment

Nope i dont got admin system im a noob scripter i need help for all this i got a [FFC]Scripter but he is gone for the next 4 weeks

What is rong is that when people enter doesent show the messege and brb dont work

and do you no where i can get a admin system so i can show my other friend it so he no's what kind of stuff the thing is

and it is MTA0.5

Link to comment

between line 37 and 38 add another }

that will get it working.

if u have no login/admin system, change this part.

  
  elseif ($3 == !kill) { 
    if ($mta.level($1,$2) >= 1) { 
      mta.slap $1 %a 
      mta.slap $1 %a 
      mta.slap $1 %a 
      mta.slap $1 %a 
      mta.slap $1 %a 
      mta.slap $1 %a 
    } 
  } 
  

to

  elseif (($3 == !kill) && ($mta.name($1,$2) == YOURNAME)) .timer 6 0 mta.slap $1 %a 

Link to comment

did u add the } where i said???

repost ur script.

this alone wont work:

1. On *:SIGNAL:mta.command:{

2. elseif (($3 == !kill) && ($mta.name($1,$2) == [FFC]Foo)) .timer 6 0 mta.slap $1 %a

1, there is no line defining variable %a and 2, the final } is missing.

repost the original version with the changes i mentioned.

Link to comment

well just to tell you scooby i not good at scripting and i added a phew more changes over the days

here is my script now

On *:SIGNAL:mta.command:{ 
  var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) 
  if ($3 == !slap) { 
    if ($mta.level($1,$2) >= 1) { 
      mta.slap $1 %a 
    } 
  } 
  elseif ($3 == !kill) { 
    if ($mta.level($1,$2) >= 1) { 
      mta.slap $1 %a 
      mta.slap $1 %a 
      mta.slap $1 %a 
      mta.slap $1 %a 
      mta.slap $1 %a 
      mta.slap $1 %a 
    } 
  } 
  elseif ($3 == !id) { 
    mta.say $1 $mta.name($1,%a) $+ 's Id = %a 
  } 
  elseif ($3 == !bot) { 
    mta.msg $1 $2 To spawn cars type this exactly: (!sp <Your Name> <Car Name/ID>) 
    mta.msg $1 $2 To Teleport Type This exactly (!tp <your Name> <Person's Name>) 
    mta.msg $1 $2 To spawn weapon's type this exactly (!wep <your Name> <Weapon Name/ID>) 
  } 
  elseif ($3 == ![FFC]) { 
  mta.say $1 Flippin Foes Clan 
  } 
  elseif ($3 == ![GN]) { 
  mta.say $1 Green Nova's 
  } 
  elseif ($3 == !info) { 
  mta.say $1 [FFC]Basic v1 By.[FFC]Foo 
  } 
  elseif ($3 == !commands) { 
  mta.say $1 Public Command's:!sp,!tp,!bot,![FFC],![GN],!info,!id,!wep 
  } 
  elseif ($3 == !members) { 
  mta.msg $1 $2 [FFC]Member's 
  mta.msg $1 $2 [FFC]Foo,[FFC]Foohy,[FFC]akia14 
  mta.msg $1 $2 [FFC]Big_Rod,[FFC]quake,[FFC]Gimp 
  } 
  elseif ($3 == !bored) { 
  mta.say $1 $mta.name($1,$2) is bored! 
  } 
  var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)  
  if ($mta.level($1,$2) >= 4) { 
    if ($3 == !ck) { 
      if ($mta.status($1,%a) != 2) mta.msg $1 $2 Player is not ingame. 
      elseif ($mta.vehicle($1,%a).name != foot) mta.msg $1 $2 Player is not on foot. 
      elseif ($mta.health($1,%a) <= 20) mta.msg $1 $2 Player does not have enough health. 
      else { 
        var %hp = $mta.health($1,%a) 
        mta.say $1 Checking $mta.name($1,%a) for HP hacks ... 
        mta.slap $1 %a 
        .timer 1 1 mta.check $1 %a %hp 
      } 
    } 
  } 
} 
alias mta.check { 
  if ($mta.health($1,$2) >= $3) { 
    mta.say $1 WARNING: HP Cheats found on: $mta.name($1,$2) 
    mta.say $1 TempBanning $mta.name($1,$2) on ip: $mta.ip($1,$2) for 1 hour 
    mta.ban $1 $2 Checker found HP cheats. 
    !writeini -n " $+ $grs.dir $+ MTAbans.ini" $mta.ip($1,$2) name $mta.name($1,$2) 
    !writeini -n " $+ $grs.dir $+ MTAbans.ini" $mta.ip($1,$2) time $ctime 
    !writeini -n " $+ $grs.dir $+ MTAbans.ini" $mta.ip($1,$2) till $calc($ctime + 3600) 
    !writeini -n " $+ $grs.dir $+ MTAbans.ini" $mta.ip($1,$2) ip $mta.ip($1,$2) 
    !writeini -n " $+ $grs.dir $+ MTAbans.ini" $mta.ip($1,$2) server $mta.server($1) 
    !writeini -n " $+ $grs.dir $+ MTAbans.ini" $mta.ip($1,$2) serverno $1 
    !write " $+ $grs.dir $+ tempbans.txt" $mta.ip($1,$2) 
    !.timer 1 3600 grs.unban $mta.ip($1,$2) 
  } 
  else mta.say $1 No HP chears found on $mta.name($1,$2) 
} 

and here is the script with your command in it

On *:SIGNAL:mta.command:{ 
  var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) 
  if ($3 == !slap) { 
    if ($mta.level($1,$2) >= 1) { 
      mta.slap $1 %a 
    } 
  } 
  elseif (($3 == !kill) && ($mta.name($1,$2) == [FFC]Foo)) .timer 6 0 mta.slap $1 %a 
  } 
  elseif ($3 == !id) { 
    mta.say $1 $mta.name($1,%a) $+ 's Id = %a 
  } 
  elseif ($3 == !bot) { 
    mta.msg $1 $2 To spawn cars type this exactly: (!sp <Your Name> <Car Name/ID>) 
    mta.msg $1 $2 To Teleport Type This exactly (!tp <your Name> <Person's Name>) 
    mta.msg $1 $2 To spawn weapon's type this exactly (!wep <your Name> <Weapon Name/ID>) 
  } 
  elseif ($3 == ![FFC]) { 
  mta.say $1 Flippin Foes Clan 
  } 
  elseif ($3 == ![GN]) { 
  mta.say $1 Green Nova's 
  } 
  elseif ($3 == !info) { 
  mta.say $1 [FFC]Basic v1 By.[FFC]Foo 
  } 
  elseif ($3 == !commands) { 
  mta.say $1 Public Command's:!sp,!tp,!bot,![FFC],![GN],!info,!id,!wep 
  } 
  elseif ($3 == !members) { 
  mta.msg $1 $2 [FFC]Member's 
  mta.msg $1 $2 [FFC]Foo,[FFC]Foohy,[FFC]akia14 
  mta.msg $1 $2 [FFC]Big_Rod,[FFC]quake,[FFC]Gimp 
  } 
  elseif ($3 == !bored) { 
  mta.say $1 $mta.name($1,$2) is bored! 
  } 
  var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)  
  if ($mta.level($1,$2) >= 4) { 
    if ($3 == !ck) { 
      if ($mta.status($1,%a) != 2) mta.msg $1 $2 Player is not ingame. 
      elseif ($mta.vehicle($1,%a).name != foot) mta.msg $1 $2 Player is not on foot. 
      elseif ($mta.health($1,%a) <= 20) mta.msg $1 $2 Player does not have enough health. 
      else { 
        var %hp = $mta.health($1,%a) 
        mta.say $1 Checking $mta.name($1,%a) for HP hacks ... 
        mta.slap $1 %a 
        .timer 1 1 mta.check $1 %a %hp 
      } 
    } 
  } 
} 
alias mta.check { 
  if ($mta.health($1,$2) >= $3) { 
    mta.say $1 WARNING: HP Cheats found on: $mta.name($1,$2) 
    mta.say $1 TempBanning $mta.name($1,$2) on ip: $mta.ip($1,$2) for 1 hour 
    mta.ban $1 $2 Checker found HP cheats. 
    !writeini -n " $+ $grs.dir $+ MTAbans.ini" $mta.ip($1,$2) name $mta.name($1,$2) 
    !writeini -n " $+ $grs.dir $+ MTAbans.ini" $mta.ip($1,$2) time $ctime 
    !writeini -n " $+ $grs.dir $+ MTAbans.ini" $mta.ip($1,$2) till $calc($ctime + 3600) 
    !writeini -n " $+ $grs.dir $+ MTAbans.ini" $mta.ip($1,$2) ip $mta.ip($1,$2) 
    !writeini -n " $+ $grs.dir $+ MTAbans.ini" $mta.ip($1,$2) server $mta.server($1) 
    !writeini -n " $+ $grs.dir $+ MTAbans.ini" $mta.ip($1,$2) serverno $1 
    !write " $+ $grs.dir $+ tempbans.txt" $mta.ip($1,$2) 
    !.timer 1 3600 grs.unban $mta.ip($1,$2) 
  } 
  else mta.say $1 No HP chears found on $mta.name($1,$2) 
} 

The only help is i need to no how can i have 2 people that can youse the script and do you see errors becouse some of the script wont work like ![GN] and all that

Link to comment

Ok, Try this:

On *:SIGNAL:mta.command:{ 
  var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) 
  if ($3 == !id) mta.say $1 $mta.name($1,%a) $+ 's Id: %a 
  elseif ($3 == !bot) { 
    mta.msg $1 $2 To spawn cars type this exactly: (!sp <Your Name> <Car Name/ID>) 
    mta.msg $1 $2 To Teleport Type This exactly (!tp <your Name> <Person's Name>) 
    mta.msg $1 $2 To spawn weapon's type this exactly (!wep <your Name> <Weapon Name/ID>) 
  } 
  elseif ($3 == ![FFC]) mta.say $1 Flippin Foes Clan 
  elseif ($3 == ![GN]) mta.say $1 Green Nova's 
  elseif ($3 == !info) mta.say $1 [FFC]Basic v1 By.[FFC]Foo 
  elseif ($3 == !commands) mta.say $1 Public Commands: !sp,!tp,!bot,![FFC],![GN],!info,!id,!wep 
  elseif ($3 == !members) { 
  mta.msg $1 $2 [FFC] Member's 
  mta.msg $1 $2 [FFC]Foo,[FFC]Foohy,[FFC]akia14 
  mta.msg $1 $2 [FFC]Big_Rod,[FFC]quake,[FFC]Gimp 
  } 
  elseif ($3 == !bored) mta.say $1 $mta.name($1,$2) is bored! 
   
;start of admin/members commands 
  
  elseif ($mta.level($1,$2) > 0) { 
    if ($3 == !slap) mta.slap $1 %a 
    elseif ($3 == !kill) .timer 6 0 mta.slap $1 %a 
    elseif ($mta.level($1,$2) >= 4) { 
      if ($3 == !kick) mta.kick $1 %a 
      elseif ($3 == !ck) { 
        if ($mta.status($1,%a) != 2) mta.msg $1 $2 Player is not ingame. 
        elseif ($mta.vehicle($1,%a).name != foot) mta.msg $1 $2 Player is not on foot. 
        elseif ($mta.health($1,%a) <= 20) mta.msg $1 $2 Player does not have enough health. 
        else { 
          var %hp = $mta.health($1,%a) 
          mta.say $1 Checking $mta.name($1,%a) for HP hacks ... 
          mta.slap $1 %a 
          if ($mta.health($1,%a) >= %hp) mta.say $1 WARNING: HP Cheats found on: $mta.name($1,$2) 
          else mta.say $1 No HP cheats found on $mta.name($1,$2) 
        } 
      } 
      elseif ($3 == !ban) { 
        if ($2 == %a) mta.pm $1 $2 Error: Cannot ban self! 
        else { 
          mta.say $1 $mta.name($1,$2) Has Banned $mta.name($1,%a) $iif($5 != $null,Reason: $5-) 
          mta.ban $1 %a 
        } 
      } 
    } 
  } 
} 
  
alias mta.level !return $iif($scriptdiradmin.ini name $mta.name($1,$2) == $null,0,$v1) 

i had to alter a few things since some of tht script had parts missing - it was taken from grs but some was missing.

also, since u have no admin login script, i made it so it reads a file. u will need to create the file, called 'admin.ini' and put it in the same location/dir as ur script.

then inside, u need to add the admins, it should look like this:

[name]

yourname=10

yourfriendsname=5

yourotherfriendsname=3

That should keep u going for a day or two all being well. :)

if u have anymore probs and need a quicker answer, add my msn.

[email protected]

sorry im not able to test it, i dont have mtama 4.15 handy. fingers crossed that its all ok tho :mrgreen:

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...