on *:SIGNAL:mta.command: {
var %a = $readini(BuyPlaceINI.ini,Places,$mta.name($1,$2).name)
var %b = $readini(BuyPlacePricesINI.ini,Prices,$mta.area($1,$2)
var %c = $iif($readini(nms.ini,Cash,$mta.name($1,$2)) == $null,0,$v1)
if ($3 == !buyplace) {
if (%a == $null) {
if (%c >= %b) {
!writeini -n BuyPlaceINI.ini Places $mta.name($1,$2).name $mta.area($1,$2)
mta.say $1 $mta.name($1,$2).name bought $mta.area($1,$2) $+ !
}
else mta.msg $1 $2 You dont have enough cash
}
else mta.msg $1 $2 You already own a place
}
}