ID:178305
 
I need a code that alows you to get in and out of a car. When you get it, you should be able to drive it. When your done, you get out.
mob/var/incar


mob
verb
Get_into_Car()
if(usr.incar>=1)
usr.icon=usr.oicon
usr.icon_state=usr.oicon_state
usr<<"You get out of your car."
usr.incar=0
else
usr.oicon=usr.icon
usr.oicon_state=usr.icon_state
usr.incar=1
usr.icon = 'car.dmi'
usr << "You Get into your Car"

hope i helped ya

-Spanks for Branks