Jump to content

Preston4321

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by Preston4321

  1. I LIKE THIS ONE LOLOLOL Lethal + Train = Flat Player. (Train) that would own!
  2. just make the scripts and show it to us if they dont work atleast try thats wut i did u cant always realy on people makeing scripts for you. So try and make it then show us it if it dosnt work ok,
  3. idk wuts wrong with it im just gonna close this project if anybody figures it out and gets it working if you could please tell me thx.
  4. ok well its working now but it just says No-One even when me and my friend tested it. We both went into a vehicle and then got out then went into the other vehicle and it still said No-One. if you could help me thx.
  5. alias part: alias rpg.lastdriver !return $iff($readini($rpg.dir $+ rpg.data.ini,lastdriver,$mta.vehicle($1,$2)),$v1,No-One) MTA Signal enter part were i call it: } else mta.msg $1 $2 Vehicle: $mta.vehicle($1,$2).name -Price: $chr(36) $+ $rpg.carprice($1,$2) Vehicle Health: $mta.health($1,$2).vehicle $+ $chr(37) $chr(91) $+ $str(|,$ceil($calc($mta.health($1,$2).vehicle /10))) $+ $chr(93) $+ . LastDriver: $rpg.lastdriver($1,$2) . Owner: Nobody } Finaly the MTA Signal Exit Part: on *:SIGNAL:mta.exit:{ !writeini -n " $+ $rpg.dir $+ rpg.data.ini" lastdriver $mta.vehicle($1,$2) $mta.name($1,$2) $+(!.timerkill,.,$1,.,$2) off if $calc($rpg.petrol($1,$3) - $calc($calc($ctime - $rpg.entertime($1,$3)) / 10)) < 0 { !writeini -n " $+ $rpg.dir $+ rpg.data.ini" petrol $3 0 } else !writeini -n " $+ $rpg.dir $+ rpg.data.ini" petrol $3 $calc($rpg.petrol($1,$3) - $calc($calc($ctime - $rpg.entertime($1,$3)) / 10)) }
  6. ok let me try... ok heres wut im still getting ** Admin PM send: Vehicle: Deluxo -Price: $1642 Vehicle Health: 68% [|||||||]. LastDriver: . Owner: Nobody
  7. Ok heres wut the problem is, when I enter the vehicle it just sas LastDriver: . even tho ive alread been in the car and stuff, now heres wut ive made: The alies for calling it by $rpg.lastdriver and im not sure if it would be $rpg.lastdriver with the ($1,$2) at the end or not couse realy i dont know wut the $1 $2 $3 $4 mean: alias rpg.lastdriver !return $iff($readini($rpg.dir $+ rpg.data.ini,lastdriver,$mta.vehicle($1,$2)),$readini($rpg.dir $+ rpg.data.ini,lastdriver,$mta.vehicle($1,$2)),No-One) The writeini for when you exit the vehicle it will add it to the ini: !writeini -n " $+ $rpg.dir $+ rpg.data.ini" lastdriver $mta.vehicle($1,$2) $mta.name($1,$2) The thing of wut it sas when you enter the car (*NOTE I did not add the whole mta.msg and rest of this part because I have added stuff I realy dont want out): LastDriver: $rpg.lastdriver
  8. download oli and jax's rpg script read it and either use it or copy and paste also get tutorials.
  9. no no no that part is fine but like idk way when i try to sell the car it sas the owner is Sunshine autos and in the ini it sas [sold] with nuttin under it.
  10. Ok so everything is cleaerd on the ini part but heres new probeblem: I dont have any vehicle in the sold section of the ini but when i go to sunshine autos it sas i dont own it so heres the normal code: alias rpg.sell { if $rpg.area($1,$2) == Sunshine-Autos { if $mta.vehicle($1,$2).name != foot && $mta.vehicle($1,$2).name != Unknown { if $rpg.sold($1,$2) != $true { if $rpg.carowner($1,$2) == $mta.name($1,$2) { var %a = $calc($calc($mta.health($1,$2).vehicle * $rpg.cargrade($1,$2)) * 3),%b = $iif($rpg.cargrade($1,$2) == 3,A,$iif ($rpg.cargrade($1,$2) == 2,B,C)) !remini -n " $+ $rpg.dir $+ rpg.data.ini" carowner $mta.vehicle($1,$2) !writeini -n " $+ $rpg.dir $+ rpg.data.ini" sold $mta.vehicle($1,$2) 1 !writeini -n " $+ $rpg.dir $+ rpg.ini" $mta.name($1,$2) cash $calc($rpg.cash($1,$2) + %a) mta.say $1 $mta.name($1,$2) sold: $mta.vehicle($1,$2).name - Class: %b - For: $chr(36) $+ %a } else mta.msg $1 $2 You do not own this vehicle } else mta.msg $1 $2 Vehicle: $mta.vehicle($1,$2).name belongs to Sunshine-Autos } else mta.msg $1 $2 No one wants to buy your feet } else mta.msg $1 $2 Sunshine-Autos want your vehicle - go there } and heres the one i did just to pass by but its not gonna be able to stay if sobody could fix it for me then post it back i'd preciate it thx alias rpg.sell { if $rpg.area($1,$2) == Sunshine-Autos { if $mta.vehicle($1,$2).name != foot && $mta.vehicle($1,$2).name != Unknown { if $rpg.sold($1,$2) != $true { if $rpg.carowner($1,$2) == $mta.name($1,$2) { var %a = $calc($calc($mta.health($1,$2).vehicle * $rpg.cargrade($1,$2)) * 3),%b = $iif($rpg.cargrade($1,$2) == 3,A,$iif($rpg.cargrade($1,$2) == 2,B,C)) !remini -n " $+ $rpg.dir $+ rpg.data.ini" carowner $mta.vehicle($1,$2) !writeini -n " $+ $rpg.dir $+ rpg.data.ini" sold $mta.vehicle($1,$2) 1 !writeini -n " $+ $rpg.dir $+ rpg.ini" $mta.name($1,$2) cash $calc($rpg.cash($1,$2) + %a) mta.say $1 $mta.name($1,$2) sold: $mta.vehicle($1,$2).name - Class: %b - For: $chr(36) $+ %a } var %a = $calc($calc($mta.health($1,$2).vehicle * $rpg.cargrade($1,$2)) * 3),%b = $iif($rpg.cargrade($1,$2) == 3,A,$iif($rpg.cargrade($1,$2) == 2,B,C)) !remini -n " $+ $rpg.dir $+ rpg.data.ini" carowner $mta.vehicle($1,$2) !writeini -n " $+ $rpg.dir $+ rpg.data.ini" sold $mta.vehicle($1,$2) 1 !writeini -n " $+ $rpg.dir $+ rpg.ini" $mta.name($1,$2) cash $calc($rpg.cash($1,$2) + %a) mta.say $1 $mta.name($1,$2) sold: $mta.vehicle($1,$2).name - Class: %b - For: $chr(36) $+ %a mta.say $1 $mta.name($1,$2) You can sell this vehicle agin in 10min! } mta.say $1 $mta.name($1,$2) You can sell this vehicle agin in 10min! } else mta.msg $1 $2 No one wants to buy your feet } else mta.msg $1 $2 Sunshine-Autos want your vehicle - go there }
  11. Everybody can call me a noob today lol i went to bed after i posted this and then i thought WTF! AM I DOIN! and remeberd that $mta.vehicle($1,$2) was the vehicle the player was in so yea lol thanks.
  12. How do i erase the cars sold in the rpg.data.ini i used this code here: alias startflood { timerflood 0 120 !remini -n " $+ $rpg.dir $+ rpg.data.ini" sold $mta.vehicle($1,$2) 0 } alias stopflood { timerflood off } and i turn it on by /startflood in mirc then heres the ini [sold] 5=1 68=1 54=1 any help would be preciated thx.
  13. ok heres the probeblem i have no clue were to start ive looked threw numorous rpg scripts and its just a bunch of unorganized writing. please if anybody has a tutorial or can get me started off that would help me thanks.
  14. I need a script just like {SB}'s please and tahnks. please i realy need one like it couse the rpg oli made dosnt worrk right like you cant even sell cars oli if you read this can you please code one like sb's thanks.
×
×
  • Create New...