Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Cristian on August 06, 2008, 01:07:59 AM

Title: help !getcar
Post by: Cristian on August 06, 2008, 01:07:59 AM
Hello all,
       
               My !getcar fails, someone has a script !getcar, but that works well.


                         
        thanks to help me :)      
Title: Re: help !getcar
Post by: TanaX01 on August 06, 2008, 01:11:02 AM
Hey Look Script TanaX01 In: http://forum.vicecitymultiplayer.com/index.php?topic=543.0  ;)
Title: Re: help !getcar
Post by: Cristian on August 06, 2008, 01:19:05 AM
FAILED :s
Title: Re: help !getcar
Post by: TanaX01 on August 06, 2008, 01:19:40 AM
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
Title: Re: help !getcar
Post by: szostol on August 06, 2008, 05:12:54 PM
Are you using sasan?
Title: Re: help !getcar
Post by: Tamas on August 06, 2008, 08:15:28 PM
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 {
Title: Re: help !getcar
Post by: Cristian on August 06, 2008, 11:11:40 PM
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!
Title: Re: help !getcar
Post by: thijn on August 07, 2008, 10:27:50 AM
Just be on foot ;)