krgunner Posted June 23, 2007 Share Posted June 23, 2007 can u check thsi for me and tell me whats wrong on *:SIGNAL:mta.command:{ if ($mta.admin+($1) == $true) { if (!cop* iswm $3) { var %a = 0,%b = $null while (%a 9) { mta.say $1 Wanted players: $iif($+(%rpg.suspects,.,$1),$+(%rpg.suspects,.,$1),None) } elseif ($numtok($+(%rpg.suspects,.,$1),32) > 19) { mta.say $1 Wanted players: $gettok($+(%rpg.suspects,.,$1),1-8,32) !.timer 1 1 $gettok($+(%rpg.suspects,.,$1),9-18,32) } else { mta.say $1 Wanted players: $gettok($+(%rpg.suspects,.,$1),1-8,32) !.timer 1 1 $gettok($+(%rpg.suspects,.,$1),9-18,32) !.timer 1 2 $gettok($+(%rpg.suspects,.,$1),19-,32) } } } } on *:SIGNAL:mta.kill:{ if ($findtok($+(%rpg.suspects,.,$1),$mta.name($1,$2),1,32)) { mta.name $1 $3 Killed a wanted player set $+(%rpg.suspects,.,$1) $remtok($+(%rpg.suspects,.,$1),$mta.name($1,$2),1,32) } } its the !suspect script thanks gunner Link to comment
Scooby Posted June 24, 2007 Share Posted June 24, 2007 hmmm well theres plenty wrong... i cba to read thru it all since u didnt disable html and it doesnt show the whole script... but, ur timers are missing mta.say $1 also u might as well do away with the admin+ line since ur not likely to run the script without it on. also i cant see where u add a player as a suspect in it. the while loop.. i dont know if its coz i cant see the whole script, but it doesnt seem to have an !inc %a line. Link to comment
krgunner Posted June 24, 2007 Author Share Posted June 24, 2007 on *:SIGNAL:mta.command:{ if ($mta.admin+($1) == $true) { if (!cop* iswm $3) { var %a = 0,%b = $null while (%a <= $mta.maxplayers($1)) { if (Cop* iswm $mta.skin($1,%a).name) { var %b = $+(%b,$mta.name($1,%a),$chr(32)) } inc %a } mta.say $1 Cops: $iif(%b,%b,None) } elseif (!suspect == $3) { if (Cop* iswm $mta.skin($1,$2).name { if ($mta.getid($1,$4) != -1) { set $+(%rpg.suspects.,$1) $addtok($+(%rpg.suspects,.,$1),$mta.name($1,$mta.findid($1,$4)),32) mta.say $1 $mta.name($1,$mta.findid($1,$4)) has been Suspected For $iif($5,$5,None) } else mta.msg $1 Invalid ID/Name } else mta.msg $1 $2 your not a cop, To use this command Become a cop. } elseif (!wanted == $3) { if ($numtok($+(%rpg.suspects,.,$1),32) > 9) { mta.say $1 Wanted players: $iif($+(%rpg.suspects,.,$1),$+(%rpg.suspects,.,$1),None) } elseif ($numtok($+(%rpg.suspects,.,$1),32) > 19) { mta.say $1 Wanted players: $gettok($+(%rpg.suspects,.,$1),1-8,32) !.timer 1 1 $gettok($+(%rpg.suspects,.,$1),9-18,32) } else { mta.say $1 Wanted players: $gettok($+(%rpg.suspects,.,$1),1-8,32) !.timer 1 1 $gettok($+(%rpg.suspects,.,$1),9-18,32) !.timer 1 2 $gettok($+(%rpg.suspects,.,$1),19-,32) } } } } on *:SIGNAL:mta.kill:{ if ($findtok($+(%rpg.suspects,.,$1),$mta.name($1,$2),1,32)) { mta.name $1 $3 Killed a wanted player set $+(%rpg.suspects,.,$1) $remtok($+(%rpg.suspects,.,$1),$mta.name($1,$2),1,32) } } there no html can you help me correct it Link to comment
Scooby Posted June 24, 2007 Share Posted June 24, 2007 (edited) ok well i dont have mtama 3.24 loaded so i cant really test it, but have a go at this. on *:SIGNAL:mta.command:{ if (!cop* iswm $3) { var %a = 0,%b while (%a <= $mta.maxplayers($1)) { if (Cop* iswm $mta.skin($1,%a).name) { var %b = $+(%b,$mta.name($1,%a),$chr(32)) } !inc %a } mta.say $1 Cops: $iif(%b,%b,None) } elseif (!suspect == $3) { if (Cop* iswm $mta.skin($1,$2).name) { if ($mta.getid($1,$4) != -1) { set $+(%rpg.suspects.,$1) $addtok($+(%rpg.suspects,.,$1),$mta.name($1,$mta.getid($1,$4)),32) mta.say $1 $mta.name($1,$mta.getid($1,$4)) has been Suspected For $iif($5,$5,None) } else mta.msg $1 Invalid ID/Name } else mta.msg $1 $2 This Command Is Only For Cops! } elseif (!wanted == $3) { if ($numtok($+(%rpg.suspects,.,$1),32) < 1) mta.say $1 Wanted players: None else { mta.say $1 Wanted players: $gettok($+(%rpg.suspects,.,$1),1-8,32) if ($numtok($+(%rpg.suspects,.,$1),32) > !.timer 1 1 mta.say $1 Wanted players: $gettok($+(%rpg.suspects,.,$1),9-18,32) if ($numtok($+(%rpg.suspects,.,$1),32) > 18) !.timer 1 2 mta.say $1 Wanted players: $gettok($+(%rpg.suspects,.,$1),19-,32) } } } on *:SIGNAL:mta.kill:{ if ($findtok($+(%rpg.suspects,.,$1),$mta.name($1,$2),1,32)) { mta.name $1 $3 Killed a wanted player set $+(%rpg.suspects,.,$1) $remtok($+(%rpg.suspects,.,$1),$mta.name($1,$2),1,32) } } Edited June 24, 2007 by Guest Link to comment
Scooby Posted June 24, 2007 Share Posted June 24, 2007 well it might help if u tell me what is working and what is not... Link to comment
krgunner Posted June 24, 2007 Author Share Posted June 24, 2007 Hey scooby sorry about what happend on kr server i left and started anew one called bt can u write me the bounty script please and maybe !jobs thanks gunner Link to comment
Recommended Posts