WestCoast Posted September 23, 2006 Share Posted September 23, 2006 I'm Not So Gooed In Scripting. Sorry If I Disturb You Guys. What I Need Is: 1) Only Cops Can Do !Suspect 2) If A Cop Kills The Suspected Person They Get $1000 Cash 3) Ppl Can Watch Who Is Wanted. I already wro this. its a bit hard to make it lol if ($3 == !Suspect) { mta.say $1 $4 Is Suspected For: $5 !writeini " $+ $scriptdir $+ wanted.ini" $mta.nick($1,$2) Is Wanted } if ($3 = !Wanted) { ($readini($scriptdir $+ wanted.ini,Wanted Peoples,$mta.ip($1,$2)) == 2) } its realy hard for me to make this but thnx. Link to comment
Jani Posted September 23, 2006 Share Posted September 23, 2006 That's not Aeron's script too, is it? Link to comment
WestCoast Posted September 23, 2006 Author Share Posted September 23, 2006 (edited) lol. i received the other script (Setplace script) from a friend. but this script i made my self i swear. i made this script my self Edited September 23, 2006 by Guest Link to comment
VRocker Posted September 23, 2006 Share Posted September 23, 2006 Man westy, this is totally fucked up! its that bad i'm going have to deny ever knowing you now But anyway, theres atleast 5 errors in this script. So lets play spot the errors! Link to comment
lil Toady Posted September 23, 2006 Share Posted September 23, 2006 on *:SIGNAL:mta.command:{ if (!suspect == $3) { 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 $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 (!wanted == $3) { 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 (Cop* iswm $mta.skin($1,$3).name) { mta.msg $1 $3 Killed a wanted player and u get 1000$ 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)) + 1000) } } } only change the ini here !writeini rpg.ini cash $mta.name($1,$3) $calc($readini(rpg.ini,cash,$mta.name($1,$3)) + 1000) to the ini you use to store cash Link to comment
WestCoast Posted September 23, 2006 Author Share Posted September 23, 2006 everything works but when i am a cop its still says Error - You Are Not A Cop. could you help me plz Link to comment
lil Toady Posted September 23, 2006 Share Posted September 23, 2006 try to change if (Cop* iswm $mta.skin($1,$2).name) { to if ($mta.skin($1,$2) == 1) { if still not working, just restart your game after mtama is connected.. Link to comment
WestCoast Posted September 23, 2006 Author Share Posted September 23, 2006 TY Very Much. Only need to know how to make an Cash and Bank system. my friend told me its very hard to make it could you help me? Link to comment
MeanpantheR Posted September 23, 2006 Share Posted September 23, 2006 TY Very Much.Only need to know how to make an Cash and Bank system. my friend told me its very hard to make it could you help me? http://forum.mtavc.com/viewtopic.php?t=17998 Link to comment
WestCoast Posted September 24, 2006 Author Share Posted September 24, 2006 Everything Works but when i Suspect someone with reason it works !wanted i see the player but when i kill him i dont get $1000 and he is still in the wanted list someone plz help me Link to comment
Recommended Posts