Vice City Multiplayer

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

Title: Help in VC-MP mIRC Admin.
Post by: Devian on April 07, 2010, 09: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, 10: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
Code: [Select]
 elseif ($3 == gravity) {
    vcmp.setgravity $1 $4
  }
Title: Re: Help in VC-MP mIRC Admin.
Post by: Devian on April 07, 2010, 10: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, 10: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, 10: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, 11:31:53 pm
http://forum.vicecitymultiplayer.com/index.php?topic=135.0

But use Pawn anyway.