JB_frozen Posted May 31, 2007 Share Posted May 31, 2007 Ok guys i have a good script wich you guys gonna like on *:signal:mta.command:{ if ($3 == !car) car.ali $1- } on *:Signal:mta.join:{ if ($readini($scriptdir $+ cars.ini,Rent,$mta.nick($1,$2)) == yes) { !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) no } if ($readini($scriptdir $+ cars.ini,License,$mta.nick($1,$2)) == $null) { !writeini -n " $+ $scriptdir $+ cars.ini" License $mta.nick($1,$2) no } if ($readini($scriptdir $+ cars.ini,License,$mta.nick($1,$2)) == Failed) { !writeini -n " $+ $scriptdir $+ cars.ini" License $mta.nick($1,$2) no } } alias buy.drive { if ($readini($scriptdir $+ cars.ini,License,$mta.nick($1,$2)) == no) { second $1- } elseif ($readini($scriptdir $+ cars.ini,License,$mta.nick($1,$2)) == failed) { mta.text $1 The driving school is closed try later again } elseif ($readini($scriptdir $+ cars.ini,Nick,$mta.nick($1,$2)) == yes) { mta.text $1 sorry $mta.nick($1,$2) but you have already an driving license } } alias second { var %a = $rand(1,2) if (%a == 1) { pgs.sub $mta.nick($1,$2) 1500 mta.text $1 Drive lesson past! you got an driving license you are now able to buy an car !writeini -n " $+ $scriptdir $+ cars.ini" License $mta.nick($1,$2) yes } else { mta.text $1 you didn't past the lesson! mta.text $1 Reason: $read(examen.txt,$rand(0,$lines(examen.txt))) !writeini -n " $+ $scriptdir $+ cars.ini" License $mta.nick($1,$2) failed .timer 1 900 !writeini -n " $+ $scriptdir $+ cars.ini" License $mta.nick($1,$2) no } } alias license { if ($readini($scriptdir $+ cars.ini,License,$mta.nick($1,$2)) == $null) { timer1 1 1 mta.text $1 Dealer: well.. were are you'r driving licenses? without one you cant buy an car! timer2 1 1 mta.pm $1 $2 Police: The dealer has reported you! 100 is token of you'r account! timer3 1 3 pgs.sub $mta.nick($1,$2) 100 } elseif ($readini($scriptdir $+ cars.ini,License,$mta.nick($1,$2)) == failed) { timer1 1 1 mta.text $1 Dealer: well.. were are you'r driving licenses? without one you cant buy an car! timer2 1 1 mta.pm $1 $2 Police: The dealer has reported you! 100 is token of you'r account! timer3 1 3 pgs.sub $mta.nick($1,$2) 100 } elseif ($readini($scriptdir $+ cars.ini,License,$mta.nick($1,$2)) == no) { timer1 1 1 mta.text $1 Dealer: well.. were are you'r driving licenses? without one you cant buy an car! timer2 1 1 mta.pm $1 $2 Police: The dealer has reported you! 100 is token of you'r account! timer3 1 3 pgs.sub $mta.nick($1,$2) 100 } else buy.cars $1- } alias car.info { if ($readini($scriptdir $+ cars.ini,Nick,$mta.nick($1,$2)) == $null) { mta.text $1 sorry $mta.nick($1,$2) but you havent an car yet please buy one first } else { if ($readini($scriptdir $+ cars.ini,Nick,$mta.nick($1,$2)) == 1) { mta.text $1 $mta.nick($1,$2) owns an $readini($scriptdir $+ cars.ini,Cars,$mta.nick($1,$2)) Worth: $ $+ $readini($scriptdir $+ cars.ini,Worth,$mta.nick($1,$2)) Damage: $ $+ $rand(1,50) Rented Out: $readini($scriptdir $+ cars.ini,Rent,$mta.nick($1,$2)) } } } alias showroom { mta.pm $1 $2 Availeble Cars are: mta.pm $1 $2 $read($scriptdir $+ cars.txt) } alias rentout { if ($readini($scriptdir $+ cars.ini,Rent,$mta.nick($1,$2)) == yes) { mta.text $1 sorry $mta.nick($1,$2) but you have already rent out your car try later again please } elseif ($readini($scriptdir $+ cars.ini,Nick,$mta.nick($1,$2)) == $null) { mta.text $1 sorry $mta.nick($1,$2) but you have to buy an car first } else { if (carrank($1,$2) >= 7) { var %a = $rand(350,400) timer1 1 1 !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) yes timer2 1 1 mta.text $1 $mta.nick($1,$2) has rented out and earned $ %a ! timer3 1 1 pgs.add $mta.nick($1,$2) %a timer4 1 900 !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) no } if (carrank($1,$2) >= 6) { var %b = $rand(300,350) timer1 1 1 !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) yes timer2 1 1 mta.text $1 $mta.nick($1,$2) has rented out and earned $ %b ! timer3 1 1 pgs.add $mta.nick($1,$2) %b timer4 1 900 !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) no } if (carrank($1,$2) >= 5) { var %c = $rand(250,300) timer1 1 1 !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) yes timer2 1 1 mta.text $1 $mta.nick($1,$2) has rented out and earned $ %c ! timer3 1 1 pgs.add $mta.nick($1,$2) %c timer4 1 900 !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) no } if (carrank($1,$2) >= 4) { var %d = $rand(200,250) timer1 1 1 !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) yes timer2 1 1 mta.text $1 $mta.nick($1,$2) has rented out and earned $ %d ! timer3 1 1 pgs.add $mta.nick($1,$2) %a timer4 1 900 !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) no } if (carrank($1,$2) >= 3) { var %e = $rand(150,200) timer1 1 1 !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) yes timer2 1 1 mta.text $1 $mta.nick($1,$2) has rented out and earned $ %e ! timer3 1 1 pgs.add $mta.nick($1,$2) %e timer4 1 900 !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) no } if (carrank($1,$2) >= 2) { var %f = $rand(100,150) timer1 1 1 !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) yes timer2 1 1 mta.text $1 $mta.nick($1,$2) has rented out and earned $ %f ! timer3 1 1 pgs.add $mta.nick($1,$2) %f timer4 1 900 !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) no } if (carrank($1,$2) >= 1) { var %g = $rand(50,100) timer1 1 1 !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) yes timer2 1 1 mta.text $1 $mta.nick($1,$2) has rented out and earned $ %g ! timer3 1 1 pgs.add $mta.nick($1,$2) %g timer4 1 900 !writeini -n " $+ $scriptdir $+ cars.ini" Rent $mta.nick($1,$2) no } } } alias car.ali { if (!$4) mta.pm $1 $2 error !car buy/sell/info/showroom/rentout/license elseif ($4 == buy) license $1- elseif ($4 == info) car.info $1- elseif ($4 == sell) sell.cars $1- elseif ($4 == showroom) showroom $1- elseif ($4 == add) cars.add $1- elseif ($4 == rentout) rentout $1- elseif ($4 == license) buy.drive $1- elseif ($4 == delete) cars.delete $1- } alias carrank !return $iif($readini($scriptdir $+ cars.ini,Rank,$mta.nick($1,$2)),$v1,0) alias buy.cars { if ($readini($scriptdir $+ car.ini,Price,$5) > $pgs.cash($1,$2)) mta.pm $1 $2 sorry $mta.nick($1,$2) but you haven't Enough Cash elseif ($readini($scriptdir $+ car.ini,cars,$5) == $null) { mta.pm $1 $2 sorry $mta.nick($1,$2) but we not sell this car type !car showroom to see wich cars are availeble } elseif ($readini($scriptdir $+ cars.ini,Nick,$mta.nick($1,$2)) == 1) { mta.text $1 sorry $mta.nick($1,$2) but first sell your other car } else { mta.text $1 $mta.nick($1,$2) has bought a $5 for $ $+ $readini($scriptdir $+ car.ini,Price,$5) Dealer: $read(cardealersell.txt,$rand(0,$lines(cardealersell.txt))) !writeini -n " $+ $scriptdir $+ cars.ini" Nick $mta.nick($1,$2) 1 !writeini -n " $+ $scriptdir $+ cars.ini" Cars $mta.nick($1,$2) $5 !writeini -n " $+ $scriptdir $+ cars.ini" Worth $mta.nick($1,$2) $readini($scriptdir $+ car.ini,Price,$5) !writeini -n " $+ $scriptdir $+ cars.ini" Rank $mta.nick($1,$2) $readini($scriptdir $+ car.ini,rank,$5) pgs.sub $mta.nick($1,$2) $readini($scriptdir $+ car.ini,Price,$5) } } alias sell.cars { if ($readini($scriptdir $+ cars.ini,Nick,$mta.nick($1,$2)) == $null) { mta.text $1 sorry $mta.nick($1,$2) but you haven't an car yet please buy one first } else { !remini " $+ $scriptdir $+ cars.ini" Nick $mta.nick($1,$2) !remini " $+ $scriptdir $+ cars.ini" Cars $mta.nick($1,$2) !remini " $+ $scriptdir $+ cars.ini" Worth $mta.nick($1,$2) !remini " $+ $scriptdir $+ cars.ini" Rank $mta.nick($1,$2) pgs.add $mta.nick($1,$2) $readini($scriptdir $+ car.ini,newPrice,$5) mta.text $1 $mta.nick($1,$2) sold his $5 $+ ! for $ $+ $readini($scriptdir $+ car.ini,newPrice,$5) Dealer: $read(cardealer.txt,$rand(0,$lines(cardealer.txt))) } } alias Cars.add { if ($mta.level($1,$2) >= 5) { if (!$5) mta.pm $1 $2 error syntax: !car add elseif (!$6) mta.pm $1 $2 error syntax: !car add elseif (!$7) mta.pm $1 $2 error syntax: !car add elseif (!$ mta.pm $1 $2 error syntax: !car add else { !writeini -n " $+ $scriptdir $+ car.ini" Cars $5 $5 !writeini -n " $+ $scriptdir $+ car.ini" Rank $5 $6 !writeini -n " $+ $scriptdir $+ car.ini" Price $5 $7 !writeini -n " $+ $scriptdir $+ car.ini" newprice $5 $8 !write -n " $+ $scriptdir $+ cars.txt" $5 $+ , mta.text $1 cars added } else mta.pm $1 $2 sorry you arent admin } } alias Cars.delete { if ($mta.level($1,$2) >= 5) { if (!$5) mta.pm $1 $2 Specify a car name please !remini " $+ $scriptdir $+ car.ini" Cars $5 !remini " $+ $scriptdir $+ car.ini" price $5 !remini " $+ $scriptdir $+ car.ini" newprice $5 !remini " $+ $scriptdir $+ car.ini" rank $5 } else mta.pm $1 $2 sorry you arent admin } Good luck Link to comment
HouseMD Posted May 31, 2007 Share Posted May 31, 2007 This script is for guys who like imagining that they have a car, it would be cool if u could change a car inside game though... Link to comment
SanZoR Posted June 1, 2007 Share Posted June 1, 2007 well thats imposible Of couse it is, but House just meaned that its kinda useless... Link to comment
HouseMD Posted June 2, 2007 Share Posted June 2, 2007 although u can change the car a map spawns with I can make script that can change the car, but thats kind useless Link to comment
onkelz98 Posted June 3, 2007 Share Posted June 3, 2007 Hi I Have PGRS Script and this Script !car buy dont work Link to comment
JB_frozen Posted June 4, 2007 Author Share Posted June 4, 2007 type !car add then you can buy that car to sel yor car type !car sell to see your info do !car info to rentout do !car rentout to buy a license do !car license to delete a car of the cars list do !car delete Link to comment
Recommended Posts