eeliottheking Posted September 12, 2006 Share Posted September 12, 2006 on *:SIGNAL:mta.command: { if ($3 == !bounty) mta.text $1 $mta.nick($1,$2) Has placed a bounty on $iif($4, $4-)'s head. $iif($4, Reward: $4-) } i want it to make it so when some one types this it will display, (name) has placed a bounty on (other name)'s head. Reward: (bounty) Link to comment
lil Toady Posted September 13, 2006 Share Posted September 13, 2006 For MTA0.5: on *:SIGNAL:mta.command: { var %a = $iif($4,$iif($mta.name($1,$4) != $null,$4,$mta.getid($1,$4)),$2) if ($3 == !bounty) { if ((%a != -1) && ($2 != %a) && ($4 isnum)) mta.say $1 $mta.name($1,$2) Has placed a bounty on $mta.name($1,%a) $+ 's head. $5 $+ $ } } For MTA:SA on *:SIGNAL:mta.command: { var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getid($1,$4)),$2) if ($3 == !bounty) { if ((%a != -1) && ($2 != %a) && ($4 isnum)) mta.text $1 $mta.nick($1,$2) Has placed a bounty on $mta.nick($1,%a) $+ 's head. $5 $+ $ } } This scripts will only say that thought, they wont write something somewhere.. For SA bounty system is useless btw ass you cant kill there. P.S: Next time somebody asks for help with a script, please type what game is this script for Link to comment
eeliottheking Posted September 13, 2006 Author Share Posted September 13, 2006 alright i will say what game it is next time. the only thing i wanted this to do is make an anouncement to other players so some 1 could put a bounty on some 1 else and this script doesnt work, i get no error messages in MTAmA or in mIRC. i get no messages what so every. i am using san andreas btw. Link to comment
Recommended Posts