Guest Posted February 8, 2007 Posted February 8, 2007 on *:SIGNAL:mta.command:{ if ( $3 == !suspect) { var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if (Cop* iswm $mta.skin($1,$2).name) { if (%a == -1) mta.msg $1 $2 Error - Absent ID/Name if (%a == $2) mta.msg $1 $2 Error - Can't suspect yourself else { !writeini " $+ $scriptdir $+ suspectlist.ini,list" List $mta.name($1,%a) 1 { mta.say $1 $mta.name($1,%a) has been added to the wanted list. Reason: $iif($5,$5-,None) } } else mta.msg $1 $2 Sorry, you are not a cop. } elseif ( $3 == !wanted ) { var %a = 0,%b while (%a <= $mta.maxplayers($1)) { if ($readini($scriptdir $+ suspectlist.ini" List $mta.name($1,%a)) == 1) { if (!%b) %b = $mta.name($1,%a) elseif (%b) %b = %b $+ , $mta.name($1,%a) } inc %a } mta.say $1 Wanted Players: $iif(%b,%b,None) } } } on *:SIGNAL:mta.kill:{ if ($readini($scriptdir $+ suspectlist.ini,list,$mta.name($1,$2)) == 1) { if ($mta.skin($1,$2) == 1) { mta.msg $1 $3 Killed a wanted player and u get 100$ of his bounty. !remini " $+ $scriptdir $+ suspectlist.ini" List $mta.name($1,$2) !writeini rpg.ini cash $mta.name($1,$3) $calc($readini(rpg.ini,cash,$mta.name($1,$3)) + 100) } } }
lil Toady Posted February 8, 2007 Posted February 8, 2007 oh my god.. one more guy with the some not working suspect script... search the forum, there were 21354236436346 topics about that not gonna help this time Do not PM me, im not going to read it anyway.
Scooby Posted February 8, 2007 Posted February 8, 2007 Argh... what is it with the forums... cant post code wtf! half the text dissapears. [email protected] ^ add my msn, i wrote u a reply but cant post it here, the code wont show after the while loop. [UVA]Scooby Founder Of UVA - Ultimate Vice Assassins http://www.uvaclan.com/
Recommended Posts