How about making !buycar and !sellcar script? ;)
elseif ($2 == !car) || ($2 == !pmcar) {
if ($vcmp.cmdcheck(!car,%id) == fail) !halt
elseif (%a == -1) vcmp.msg %id Absent ID/Name
elseif ($vcmp.vehicle(%a,id) == 0) vcmp.msg %id $vcmp.name(%a) car is currently on foot!
else vcmp.msg %id Vehicle - Name: $+($chr(91),$vcmp.carname($vcmp.vehicle(%a,id)),$chr(93)) ID: $+($chr(91),$vcmp.vehicle(%a,id),$chr(93)) Price: $+($chr(91),$vcmp.vehiclecost($vcmp.vehicle(%a,id)),$chr(93)) Owner: $+($chr(91),$vcmp.carowner($vcmp.vehicle(%a,id)),$chr(93))
}
elseif ($2 == !buycar) {
if ($vcmp.cmdcheck(!buycar,%id) == fail) !halt
elseif (Sunshine Autos !isin $vcmp.area(%b)) vcmp.msg %id To Buy A Car Deves Be Sunshine In Cars!!
elseif ($vcmp.vehicle(%a,id) == 0) vcmp.msg %id
elseif ($vcmp.carowner($vcmp.vehicle(%a,id)) != Sunshine Autos) vcmp.msg %id This vehicle is owned by $vcmp.carowner($vcmp.vehicle(%a,id))
elseif ($vcmp.vehiclecost($vcmp.vehicle(%a,id)) > $vcmp.cash(%id)) vcmp.msg %id You need atleast $ $+ $vcmp.vehiclecost($vcmp.vehicle(%a,id))
else {
vcmp.cash- %b $vcmp.vehiclecost($vcmp.vehicle(%a,id))
!writeini -n vcmp.cars.ini OWNERS $vcmp.vehicle(%a,id) $vcmp.name(%id)
vcmp.msg %id You have just bought $+($chr(91),$vcmp.carname($vcmp.vehicle(%a,id)),$chr(93)) ID: $+($chr(91),$vcmp.vehicle(%a,id),$chr(93)) Price: $+($chr(91),$vcmp.vehiclecost($vcmp.vehicle(%a,id)),$chr(93))
}
}
elseif ($2 == !sellcar) {
if ($vcmp.cmdcheck(!sellcar,%id) == fail) !halt
elseif (Sunshine Autos !isin $vcmp.area(%b)) vcmp.msg %id To Sell A Must Be In Order To Sunshine Or Make One Admin The Leasehold Landlord
elseif ($vcmp.vehicle(%a,id) == 0) vcmp.msg %id You Have No Car No!
elseif ($vcmp.carowner($vcmp.vehicle(%a,id)) != %name) vcmp.msg %id You Can not Buy This Car Has Owner
else {
!writeini -n vcmp.cars.ini OWNERS $vcmp.vehicle(%a,id) Sunshine Autos
vcmp.cash+ %b $calc($vcmp.vehiclecost($vcmp.vehicle(%a,id)) * 0.55)
vcmp.msg %id You have sold your vehicle with price $ $+ $calc($vcmp.vehiclecost($vcmp.vehicle(%a,id)) * 0.55)
}
}
elseif ($2 == !getcar) || ($2 == !pmgetcar) {
if ($vcmp.cmdcheck(!getcar,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <car id>
elseif ($3 !isnum) vcmp.msg %id Error - Invalid Vehicle ID, $2 <car id>
elseif ($vcmp.carowner($3) != %name) vcmp.msg %id Your not the owner of this car!
else {
vcmp.setvehicleloc $3 $hget(vcmp,%id $+ .xyz)
.timer -m 1 400 vcmp.setvehicle %id $3
}
}
elseif ($2 == !cardive) || ($2 == !pmgetcar) {
if ($vcmp.cmdcheck(cardivegetcar,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Missing Information, $2 <car id>
elseif ($3 !isnum) vcmp.msg %id Invalid Vehicle ID, $2 <car id>
elseif ($vcmp.carowner($3) != %name) vcmp.msg %id You are not the owner of this car, go and buy one!
else {
vcmp.msg %id
vcmp.setvehicleloc $3 $hget(vcmp,%id $+ .x) $hget(vcmp,%id $+ .y) $calc($hget(vcmp,%id $+ .z) + 700)
.timer -m 1 400 vcmp.set 9 %id $3
}
}
elseif ($2 == !lockcar) || ($2 == !pmlockcar) {
if ($vcmp.cmdcheck(!lockcar,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <car id>
elseif ($3 !isnum) vcmp.msg %id Error - Invalid Vehicle ID, $2 <car id>
elseif ($vcmp.carowner($3) != %name) vcmp.msg %id You are not the owner of this car
else {
vcmp.lockdoors $3 4
vcmp.msg %id **Car Locked
}
}
elseif ($2 == !unlockcar) || ($2 == !pmunlockcar) {
if ($vcmp.cmdcheck(!unlockcar,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <car id>
elseif ($3 !isnum) vcmp.msg %id Error - Invalid Vehicle ID, $2 <car id>
elseif ($vcmp.carowner($3) != %name) vcmp.msg %id You are not the owner of this car
else {
vcmp.lockdoors $3 0
vcmp.msg %id **Car Unlocked }
}
Hey,
Hmm, locking the doors would be not that good of an idea. Just because then most of the car doors will be locked and non usable.
I was thinking, if someone enters a car that is not owned by them, the owner will get 10-15$ per enter of something from that person.
Basically like a loan or something, a rent for the car.
Regards,
Tommis
Killing In Race
Yea renting sounds good. It would be like;
!rentcar <amount-of-days> Maxium 10days = $200 (10 Multiplied by 2)
So each day is x2
When each day that goes by say for
Eg. Three days = $60 That would be subtracted from the renters bank account and would be added to the vehicles owner account.
You can also use "Database for Vice City Vehicles" by Windlord to round off the cost.
:D
on *:EXIT: {
do fancy saving hash table stuff
}
elseif ($1 == !getip) {
if (!$2) echo @Server Error - Missing Information, $1 <name>
elseif ($vcmp.getip($2) == Unknown) echo @Server Error - Cannot Find IP on " $+ $2 $+ "
else {
locate $vcmp.getip($2)
echo @Server Please Wait, Retrieving IP Information...
pause s 3
echo @Server $2 $+ 's IP Details
echo @Server IP: %ip
echo @Server Country: %country
echo @Server City: %city
echo @Server ISP: %isp
unset %isp
unset %ip
unset %city
unset %state
unset %country
!halt
}
}
elseif ($1 == !getip) {
if (!$2) msg $chan Error - Missing Information, $1 <name>
elseif ($vcmp.getip($2) == Unknown) msg $chan Error - Cannot Find IP on " $+ $2 $+ "
else msg $chan $2 $+ 's - IP: $vcmp.getip($2)
}
;)XE has a !getip cmd already, and its also make that 8)
Example: [XE]Tommis made "drag" race!
[XE]Tommis offer 4000$ to the Winner, go to the "Airport" and type !race to enter in the it!
or something like that! xDcould we make goto only work once every 5 minutes for admins using it on players who have nogoto on? that way it isn't abused so much. sometimes I can't even do my job as admin, because certain admins use goto on me over and over. admin vs admin nogoto working could also help with this.how about no heal. Lets have no heal, or maybe heal at certain places like cafes, hospitals, clubs
...and the heal delay... is unfair IMO. normal players should be able to heal just as fast as admins. I do not like having any unfair advantages. also, I've seen some players use /c heal after being floored by a stubby shot, and due to the heal delay, you cant damage them until they are done healing. without perfect shot timing, there is no way to hit them until after they have healed, got up off the floor, and jumped away from your shot. removing the heal delay would open them up to a point blank stubby shot, which is what would happen to me if I tried to type /c heal while floored. yeah, I'm sure I can just kick them for it, but its not their fault they are stuck with the delay, so most times I don't.
how about no heal. Lets have no heal, or maybe heal at certain places like cafes, hospitals, clubs
Oh yea, as for admins, a way to tell if a player has nogoto on or off would be nice.Really nice idea!!
I get a lot of requests for a command to change login passi agree with you aki
Some addons needed for XE ServersI think this was tried before, but there's a glitch sometimes before you spawn it says you have for example, 115% armor, when you really don't. So I think that might run into some problems.
1.Auto Ban For Armour Hax when admins aren't online
Yes I Have Noticed but it can be fixed by Tommis For SureSome addons needed for XE ServersI think this was tried before, but there's a glitch sometimes before you spawn it says you have for example, 115% armor, when you really don't. So I think that might run into some problems.
1.Auto Ban For Armour Hax when admins aren't online