• Welcome to Vice City Multiplayer.
 

help !getcar

Started by Cristian, August 06, 2008, 01:07:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cristian

Hello all,
       
               My !getcar fails, someone has a script !getcar, but that works well.


                                  thanks to help me :)      


TanaX01


Cristian



TanaX01

Quote from: Cristian on August 06, 2008, 01:19:05 AM
FAILED :s

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

szostol


Tamas

My freegetcar command for sasan only for admins:

Quoteelseif ($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 {

Cristian

but that's to get any car, i want it! getc but other than that:



     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!


thijn