Vital Posted November 30, 2005 Share Posted November 30, 2005 elseif ($3 == !jail) { if $rpg.area($1,$2) == Police-HQ { if $rpg.cash($1,$2) >= 0 { if ($readini($scriptdir $+ suspectlist.ini,list,$mta.name($1,$4)) == 1) { if (Cop* iswm $mta.skin($1,$2).name) { mta.msg $1 $2 You Jailed A Wanted Person You Got His Wanted Money! } !writeini rpg.ini cash mta.name($1,$32) $calc($readini($rpg.ini,cash,$mta.name($1,$2)) + 1000 !remini " $+ $scriptdir $+ suspectlist.ini" List $mta.name($1,$4) !remini " $+ $scriptdir $+ suspectlist.ini" Reasons $mta.name($1,$4) !writeini rpg.ini cash $mta.name($1,$2) $calc($readini(rpg.ini,cash,$mta.name($1,$2)) + 1000) } else mta.msg $1 $2 The Person You Are Trying To Arrest Is Not At The Police HQ! } Someone Fix this plz! and my Coord for Police HQ 422.856658935547,-486.591369628906,378.87548828125,-449.1708984375,331.352081298828,-505.30615234375,376.458312988281,-543.403625488281=Police-HQ Link to comment
Omg Posted December 1, 2005 Share Posted December 1, 2005 Hmm weird u said u worked on script for 3 years right .. anyways : if $rpg.area($1,$2) == Police-HQ { can u tell me whats wrong there ? Let me tell u if u cant figure it out , $2 is the id of person doing the command !jail not the person u trying to arrest use $mta.getid($1,$4) instead of $2 Plus the code is all wrong u need to redo the code , cause that !jail command should work for the person who is standing in jail and wants himself to be arrested. Good luck , and if u did scripting urself u would probably know that by now , so assuming ur editing someonelses scripts so good luck in editing someones script. Link to comment
Recommended Posts