• Welcome to Vice City Multiplayer.
 

Help with FBS0.2

Started by MrAcmering, October 25, 2009, 08:08:14 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

MrAcmering

Hi all, I'm searching two commands...
1: a cmd like !getcar but all can use it.

Example: [SkT*]Acmering: !infernus
               ** Getting Infernus to [SkT*]Acmering

2: a cmd like the R3V server command

Example: [SkT*]Acmering: !fight
              ** [SkT*]Acmering is going to fight area
I'm working on FBS 0.2


big thanks

Regards,
MrAcmering


YaY

[AoD]NC

Hey spamer :P

1. To do a !getcar but everyone can use, simple do a similar !getcar command. My idea for this:
Quoteelseif ($3 == getcarASD) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must register to be able to use this command.
    elseif (!$4) vcmp.msg $1 $2 Error - Correct Syntax: ! $+ $3 <Car ID>
    elseif ($4 !isnum) vcmp.msg $1 $2 Error, Invalid Car ID
    elseif (. isin $4) || (, isin $4) || (- isin $4) vcmp.msg $1 $2 Error, No negative or decimal car id's
    elseif ($4 > $calc(%FBS.vehicles - 1)) vcmp.msg $1 $2 Error, Invalid Car ID
    elseif ($FBS.rwarstatus($2) == 1) vcmp.msg $1 $2 You cannot get a vehicle, your are in a minigame
    elseif ($vcmp.vehicle($1, $2) != 0) vcmp.msg $1 $2 Error, You must be on foot to use this command
    else {
      vcmp.setvehicleloc $1 $4 $calc($vcmp.location($1, $2).x + 2) $vcmp.location($1, $2).y $calc($vcmp.location($1, $2).z - 1.12)
      vcmp.msg $1 $2 Getting Vehicle:[ $hget(VehicleNames,$4) $chr(93)
    }
  }

Command syntax must be !command $-Param-Eters. So !getcarASD VehID, not !infernus. Ofc u can do a command infernus, but in this u have to do a while, checks etc..

2. How dose it look like the fight cmd on Jc's and friends server :P? Its a LMS or only teleport?

MrAcmering

thx...



no need for 2nd command.

Regards,
MrAcmering


YaY