Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Devian on April 07, 2010, 08:55:57 PM

Title: Help in VC-MP mIRC Admin.
Post by: Devian on April 07, 2010, 08:55:57 PM
well..
i use 'New VC-MP mIRC Admin'

and i create this cmd.

  elseif ($3 == gravity) {
    vcmp.setgravity $1 30
  }

well this cmd works fine.
but i want in game change the value.
Ex: !gravity <value>
not everytime gravity 30

can someone help-me?
thanks!.
Title: Re: Help in VC-MP mIRC Admin.
Post by: Boss on April 07, 2010, 09:09:32 PM
/me slaps Thijn
See, that's what I was talking about. Some unrelated symbols, unnamed variables... Programming cannot possibly be more fun!

2 Devian:
Anyway, I assume to enter the value yourself you would need to have

 elseif ($3 == gravity) {
   vcmp.setgravity $1 $4
 }

Title: Re: Help in VC-MP mIRC Admin.
Post by: Devian on April 07, 2010, 09:15:01 PM
Thanks a lot Boss!.
was trying with $3
Title: Re: Help in VC-MP mIRC Admin.
Post by: gta5 on April 07, 2010, 09:42:21 PM
lol $3 is the command itself $4 is the value after the command. If u want a third valuse it wud be $5 etc.
Title: Re: Help in VC-MP mIRC Admin.
Post by: Devian on April 07, 2010, 09:53:07 PM
and how i do to Put Player in Vehicle ?
if players type: !x
put player in vehicle <vehicle,Model>

something :)

Thanks:)
Title: Re: Help in VC-MP mIRC Admin.
Post by: Boss on April 07, 2010, 10:31:53 PM
http://forum.vicecitymultiplayer.com/index.php?topic=135.0

But use Pawn anyway.