Author Topic: help !getcar  (Read 5009 times)

0 Members and 1 Guest are viewing this topic.

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
help !getcar
« on: August 06, 2008, 02:07:59 am »
Hello all,
       
               My !getcar fails, someone has a script !getcar, but that works well.


                                  thanks to help me :)      


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: help !getcar
« Reply #1 on: August 06, 2008, 02:11:02 am »

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: help !getcar
« Reply #2 on: August 06, 2008, 02:19:05 am »
FAILED :s


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: help !getcar
« Reply #3 on: August 06, 2008, 02:19:40 am »
FAILED :s

you cristian add script is failed you not idea in add commands in script sasan sorry  :-X

szostol

  • Guest
Re: help !getcar
« Reply #4 on: August 06, 2008, 06:12:54 pm »
Are you using sasan?

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: help !getcar
« Reply #5 on: August 06, 2008, 09:15:28 pm »
My freegetcar command for sasan only for admins:

Quote
    elseif ($2 == !freegetcar) {
      if ($hget(vcmp,loggedin. $+ %id) < 10) vcmp.adminmsg %id You must be Admin Level 10 or higher to attempt this command.
      else {
        if ($vcmp.hgetcarid(%id) != 0) vcmp.adminmsg %id You must not be in a vehicle to use !getcar.
        else {
          if ((!$3) || ($3 > 200) || ($3 < 0)) vcmp.adminmsg %id Error: Invalid Car ID.
          else {
            vcmp.setloc %id $vcmp.hgetpos.x(%id) $vcmp.hgetpos.y(%id) $vcmp.hgetpos.z(%id) 0
            vcmp.setcarloc $3 $vcmp.hgetpos.x(%id) $vcmp.hgetpos.y(%id) $vcmp.hgetpos.z(%id)
            vcmp.setcar %id $3
            vcmp.adminmsg %id Got car $3 $+ !
          }
        }
      }
    }

It needs to go under:
;--- handle in-game [chat] commands
on *:SIGNAL:vcmp.event.gamecmd {

Offline Cristian

  • Wiseguy
  • **
  • Posts: 63
    • View Profile
Re: help !getcar
« Reply #6 on: August 07, 2008, 12:11:40 am »
but that's to get any car, i want it! getc but other than that:


Code: [Select]
     elseif ($2 == !getcar) {
      if ($vcmp.hgetcarid(%id) != 0) vcmp.adminmsg %id You must be on foot to use the <!Getcar> Command.
      elseif (!$3) vcmp.adminmsg %id Error - Missing Information, $2 <ID>
      elseif ($3 !isnum) vcmp.adminmsg %id $2 $+ , Invalid Vehicle ID.
      elseif (. isin $3) vcmp.adminmsg %id $2 $+ , Invalid Vehicle ID.
      elseif ($3 > 140) || ($3 < 0) vcmp.adminmsg %id Error: Invalid Vehicle ID.
      elseif (+ isin $3) || (- isin $3) vcmp.adminmsg %id $2 $+ , Invalid Vehicle ID.
      elseif ( $vcmp.carsowners($3) != $vcmp.hgetname(%id)) vcmp.adminmsg %id Error - You Dont have Keys To this Vehicle.
      else {
        vcmp.setcarloc $3 $calc($vcmp.hgetpos.x(%id) + 2) $calc($vcmp.hgetpos.y(%id) + 2) $calc($vcmp.hgetpos.z(%id) - 1) 
        vcmp.adminmsg %id Spawning Car:[ $3 $+ ]
      }
      if ($vcmp.hgetcarid(%id) != 0) vcmp.adminmsg %id You must be on foot to use the <!Getcar> Command.
      elseif (!$3) vcmp.adminmsg %id Error - Missing Information, $2 <ID>
      elseif ($3 !isnum) vcmp.adminmsg %id $2 $+ , Invalid Vehicle ID.
      elseif (. isin $3) vcmp.adminmsg %id $2 $+ , Invalid Vehicle ID.
      elseif ($3 > 140) || ($3 < 0) vcmp.adminmsg %id Error: Invalid Vehicle ID.
      elseif (+ isin $3) || (- isin $3) vcmp.adminmsg %id $2 $+ , Invalid Vehicle ID.
      elseif ( $vcmp.carsshares($3) != $vcmp.hgetname(%id)) vcmp.adminmsg %id Error - You Dont have Keys To this Vehicle.
      else {
        vcmp.setcarloc $3 $calc($vcmp.hgetpos.x(%id) + 2) $calc($vcmp.hgetpos.y(%id) + 2) $calc($vcmp.hgetpos.z(%id) - 1) 
        vcmp.adminmsg %id Spawning Car:[ $3 $+ ]
      }
    }   

fault this  :(

by putting !getcar 41 says: You must be on foot to use the <!Getcar> Command.

help!


Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: help !getcar
« Reply #7 on: August 07, 2008, 11:27:50 am »
Just be on foot ;)