Author Topic: Help with FBS0.2  (Read 2697 times)

0 Members and 1 Guest are viewing this topic.

Offline MrAcmering

  • Street Thug
  • *
  • Posts: 44
  • I can own you and your ass
    • View Profile
Help with FBS0.2
« on: October 25, 2009, 11:08:14 am »
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

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: Help with FBS0.2
« Reply #1 on: October 26, 2009, 05:26:47 pm »
Hey spamer :P

1. To do a !getcar but everyone can use, simple do a similar !getcar command. My idea for this:
Quote
  elseif ($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?

Offline MrAcmering

  • Street Thug
  • *
  • Posts: 44
  • I can own you and your ass
    • View Profile
Re: Help with FBS0.2
« Reply #2 on: October 28, 2009, 11:26:41 pm »
thx...



no need for 2nd command.

Regards,
MrAcmering


YaY