Author Topic: Scripts needed!!!  (Read 8227 times)

0 Members and 1 Guest are viewing this topic.

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Scripts needed!!!
« on: March 18, 2009, 12:34:40 pm »
I Wanted to start an lan party in the next week and i decided to make an Gta Vc Lan server but we dont want an such "blank" server...

wanted:
!manhunt Script
!copcall (to call cops that are on duty)
!taxi (like that one on argonath RPG)
!ad  (like that one on argonath RPG)
!buycar !sellcar , etc.
!buyprop !sellprop , etc.

Added at own server:
!wire (to wire money from player banks)

and if aviable more...
i am new to VC:MP . So i have not much scripting skills.
I also use GUS 9.0 . so could some one help me out?

P.S sorry when i spelled something wrong imma german!

Offline chn batista

  • Wiseguy
  • **
  • Posts: 66
  • nothing
    • View Profile
Re: Scripts needed!!!
« Reply #1 on: March 18, 2009, 03:35:14 pm »
buycar sharecar getcar sellcar
Code: [Select]
elseif ($3 == buycar) {
    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 ($4 > $calc(%FBS.vehicles - 1)) 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 ($FBS.CarPrice($4) > $FBS.actcash($1, $2)) vcmp.msg $1 $2 Error, You do not have enough cash to buy this vehicle
    elseif ($FBS.CarOwner($4) != Sunshine Auto's)  vcmp.msg $1 $2 Error, This vehicle is already owned by $FBS.CarOwner($4)
    elseif ($vcmp.vehiclename($1, $vcmp.vehicle($1, $2)) == Unknown) vcmp.msg $1 $2 Error, This is an unknown vehiclw
    elseif (Sunshine !isin $FBS.Buildings($1, $2)) vcmp.msg $1 $2 Error, You must be located at Sunshine Auto's
    elseif ($vcmp.vehicle($1, $2) != $4) vcmp.msg $1 $2 Error, You must be in the car you want to buy
    elseif ($FBS.Mycars($1, $2) >= 2) vcmp.msg $1 $2 Error, You have reached your vehicle limit
    else {
      vcmp.say $1 ** Selling $vcmp.vehiclename($1, $vcmp.vehicle($1, $2)) (ID: $vcmp.vehicle($1, $2) $+ ) to $vcmp.name($1, $2)
      vcmp.msg $1 $2 Cost:[ $ $+ $FBS.Carprice($4) $chr(93) New Balance:[ $+ $fbs.actcash($1, $2) $chr(93)
      FBS.DecCash $1 $2 $FBS.Carprice($4)
      !remini -n FBS.carowners.ini OWNERS $vcmp.vehicle($1, $2)
      !writeini -n FBS.carowners.ini OWNERS $vcmp.vehicle($1, $2) $vcmp.name($1, $2)
      FBS.IncMyCars $1 $2 1
      !writeini -n FBS.mycarsinfo.ini INFO $vcmp.vehicle($1, $2) $vcmp.name($1, $2)
    }
  }
  elseif ($3 == sharecar) {
    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 <Nick/ ID>
    elseif ($vcmp.name($1, $4) == Unknown) vcmp.msg $1 $2 Error, Invalid Nick or ID
    elseif ($FBS.CarOwner($vcmp.vehicle($1, $2)) != $vcmp.name($1, $2)) vcmp.msg $1 $2 Error, You do not own this vehicle
    elseif ($vcmp.vehiclename($1, $vcmp.vehicle($1, $2)) == Unknown) vcmp.msg $1 $2 Error, This is an unknown vehicle
    elseif ($FBS.CarShares($vcmp.vehicle($1, $2)) != None) vcmp.msg $1 $2 Error, This car has already been shared
    else {
      vcmp.msg $1 $2 You are now sharing your $vcmp.vehiclename($1, $vcmp.vehicle($1, $2)) (ID: $vcmp.vehicle($1, $2) $+ ) with $vcmp.name($1, $FBS.ID($4))
      vcmp.msg $1 $FBS.ID($4) $vcmp.name($1, $2) is now sharing there $vcmp.vehiclename($1, $vcmp.vehicle($1, $2)) (ID: $vcmp.vehicle($1, $2) $+ ) with you
      !writeini -n FBS.sharecarsinfo.ini SHARES $vcmp.vehicle($1, $2) $vcmp.name($1, $FBS.ID($4))
    }
  }
  elseif ($3 == delsharecar) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must register to be able to use this command.
    elseif ($FBS.CarOwner($vcmp.vehicle($1, $2)) != $vcmp.name($1, $2))  vcmp.msg $1 $2 Error, You do not own this vehicle
    elseif ($vcmp.vehiclename($1, $vcmp.vehicle($1, $2)) == Unknown) vcmp.msg $1 $2 Error, This is an unknown vehicle
    elseif ($FBS.CarShares($vcmp.vehicle($1, $2)) == None) vcmp.msg $1 $2 Error, This vehicle has not been shared
    else {
      vcmp.msg $1 $2 You are no longer sharing your $vcmp.vehiclename($1, $vcmp.vehicle($1, $2)) (ID: $vcmp.vehicle($1, $2) $+ ) with $FBS.Carshares($vcmp.vehicle($1, $2))
      !remini -n FBS.sharecarsinfo.ini SHARES $vcmp.vehicle($1, $2)
    }
  }
  elseif ($3 == sellcar) {
    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 ($4 > $calc(%FBS.vehicles - 1)) 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 (Sunshine !isin $FBS.Buildings($1, $2)) vcmp.msg $1 $2 Error, You must be located at Sunshine Auto's
    elseif ($vcmp.vehicle($1, $2) != $4) vcmp.msg $1 $2 Error, You must be in the car you want to sell
    elseif ($FBS.carowner($vcmp.vehicle($1, $2)) != $vcmp.name($1, $2)) vcmp.msg $1 $2 Error, You do not own this vehicle
    elseif ($vcmp.vehiclename($1, $vcmp.vehicle($1, $2)) == Unknown) vcmp.msg $1 $2 Error, This is an unknown vehiclw 
    elseif ($FBS.Carshares($vcmp.vehicle($1, $2)) != None) vcmp.msg $1 $2 You must remove the share of this car first
    else {
      vcmp.say $1 ** $vcmp.name($1, $2) has sold there $vcmp.vehiclename($1, $vcmp.vehicle($1, $2)) (ID: $vcmp.vehicle($1, $2) $+ )
      vcmp.msg $1 $2 Cash Return:[ $ $+ $calc($FBS.Carprice($4) /2) $chr(93) New Balance:[ $ $+ $fbs.actcash($1, $2) $chr(93)
      FBS.IncCash $1 $2 $calc($FBS.Carprice($4) /2)
      !remini -n FBS.carowners.ini OWNERS $vcmp.vehicle($1, $2)
      !writeini -n FBS.carowners.ini OWNERS $vcmp.vehicle($1, $2) Sunshine Auto's
      FBS.DecMyCars $1 $2 1
      !remini -n FBS.mycarsinfo.ini INFO $vcmp.vehicle($1, $2)
    }
  }
  elseif ($3 == getcar) {
    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
    elseif ($FBS.carowner($4) == $vcmp.name($1, $2)) {
      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)
    }   
    elseif ($FBS.carshares($4) == $vcmp.name($1, $2)) {
      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)
    }
    else {
      vcmp.msg $1 $2 You do not own or share this vehicle
    }
  }

Offline Daniel95

  • Made Man
  • ***
  • Posts: 120
  • NOU!!!!
    • View Profile
Re: Scripts needed!!!
« Reply #2 on: March 18, 2009, 03:37:28 pm »
I Wanted to start an lan party in the next week and i decided to make an Gta Vc Lan server but we dont want an such "blank" server...

wanted:
!manhunt Script
!buycar !sellcar , etc.
!buyprop !sellprop , etc.

Download FBS for this commands
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

Offline chn batista

  • Wiseguy
  • **
  • Posts: 66
  • nothing
    • View Profile
Re: Scripts needed!!!
« Reply #3 on: March 18, 2009, 03:38:36 pm »
maybe it doesn't work just try it ;)

Offline chn batista

  • Wiseguy
  • **
  • Posts: 66
  • nothing
    • View Profile
Re: Scripts needed!!!
« Reply #4 on: March 18, 2009, 03:41:43 pm »
buyprop sellprop shareprop home myprop.........
Code: [Select]
elseif ($3 == buyprop) {
    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 <Prop ID>
    elseif ($4 !isnum) vcmp.msg $1 $2 Error, Invalid Prop ID
    elseif ($4 > $fbs.propcount) vcmp.msg $1 $2 Error, Invalid Prop ID
    elseif (. isin $4) || (, isin $4) || (- isin $4) vcmp.msg $1 $2 Error, No negative or decimal prop id's
    elseif ($FBS.PropPrice($4) > $FBS.actcash($1, $2)) vcmp.msg $1 $2 Error, You do not have enough cash to buy this property
    elseif ($FBS.PropDistance($2, $4) > 10) vcmp.msg $1 $2 Error, You must be closer to the property
    elseif ($FBS.PropOwner($4) != Vice City) vcmp.msg $1 $2 Error, This property is already owned by $FBS.PropOwner($4)
    elseif ($FBS.Myprops($1, $2) >= 2) vcmp.msg $1 $2 Error, You have reached your property limit
    else {
      vcmp.say $1 ** Selling $FBS.PropName($4) (ID: $4 $+ ) to $vcmp.name($1, $2)
      vcmp.msg $1 $2 Cost:[ $ $+ $FBS.Propprice($4) $chr(93) New Balance:[ $ $+ $fbs.actcash($1, $2) $chr(93)
      vcmp.msg $1 $2 To spawn at your property type: /c propspawn $4 on
      FBS.DecCash $1 $2 $FBS.PropPrice($4)
      !remini -n FBS.propowners.ini OWNERS $4
      !writeini -n FBS.propowners.ini OWNERS $4 $vcmp.name($1, $2)
      FBS.IncMyprops $1 $2 1
      fbs.checkprops
    }
  }
  elseif ($3 == sellprop) {
    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 <Prop ID>
    elseif ($4 !isnum) vcmp.msg $1 $2 Error, Invalid Prop ID
    elseif ($4 > $fbs.propcount) vcmp.msg $1 $2 Error, Invalid Prop ID
    elseif (. isin $4) || (, isin $4) || (- isin $4) vcmp.msg $1 $2 Error, No negative or decimal prop id's
    elseif ($FBS.PropOwner($4) != $vcmp.name($1, $2)) vcmp.msg $1 $2 Error, You do not own this property
    elseif ($FBS.SpawnSetting($5) == on) vcmp.msg $1 $2 Error, You need to turn off property spawning first
    else {
      vcmp.say $1 ** $vcmp.name($1, $2) has sold there $FBS.PropName($4) (ID: $4 $+ )
      vcmp.msg $1 $2 Cash Return:[ $ $+ $FBS.Propprice($4) $chr(93) New Balance:[ $ $+ $fbs.actcash($1, $2) $chr(93)
      FBS.IncCash $1 $2 $calc($FBS.PropPrice($4) / 2)
      !remini -n FBS.PropSpawn.ini SPAWN $FBS.PropShares($4)
      !remini -n FBS.PropSpawn.ini STATUS $FBS.PropShares($4)
      !remini -n FBS.propowners.ini OWNERS $4
      !remini -n FBS.PropSpawn.ini SPAWN $vcmp.name($1, $2)
      !remini -n FBS.PropSpawn.ini STATUS $vcmp.name($1, $2)
      !writeini -n FBS.propowners.ini OWNERS $4 Vice City
      FBS.DecMyProps $1 $2 1
      fbs.checkprops
    }
  }
  elseif ($3 == home) {
    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 <Prop ID>
    elseif ($4 !isnum) vcmp.msg $1 $2 Error, Invalid Prop ID
    elseif ($4 > $fbs.propcount) vcmp.msg $1 $2 Error, Invalid Prop ID
    elseif (. isin $4) || (, isin $4) || (- isin $4) vcmp.msg $1 $2 Error, No negative or decimal prop id's
    elseif ($FBS.PropOwner($4) != $vcmp.name($1, $2)) && ($FBS.PropShares($4) != $vcmp.name($1, $2)) vcmp.msg $1 $2 Error, You do not own or share this property
    else {
      var %loc = $readini(FBS.PropSpawn.ini,LOCATION,$4)
      vcmp.msg $1 $2 Sending you to $FBS.PropName($4)
      vcmp.setlocation $1 $2 %loc
    }
  }
  elseif ($3 == shareprop) {
    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 <Nick/ ID> <Prop ID>
    elseif (!$5) vcmp.msg $1 $2 Error - Correct Syntax: ! $+ $3 <Nick/ ID> <Prop ID>
    elseif ($vcmp.name($1, $4) == Unknown) vcmp.msg $1 $2 Error, Invalid Nick or ID
    elseif ($FBS.PropOwner($5) != $vcmp.name($1, $2)) vcmp.msg $1 $2 Error, You do not own this property
    elseif ($FBS.PropShares($5) != None) vcmp.msg $1 $2 Error, This property has already been shared
    else {
      vcmp.msg $1 $2 You are now sharing your $FBS.PropName($5) (ID: $5 $+ ) with $vcmp.name($1, $FBS.ID($4))
      vcmp.msg $1 $FBS.ID($4) $vcmp.name($1, $2) is now sharing there $FBS.PropName($5) (ID: $5 $+ ) with you
      !writeini -n FBS.PropOwners.ini SHARES $5 $vcmp.name($1, $FBS.ID($4))
    }
  }
  elseif ($3 == delshareprop) {
    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 <Prop ID>
    elseif ($FBS.PropOwner($4) != $vcmp.name($1, $2))  vcmp.msg $1 $2 Error, You do not own this property
    elseif ($FBS.PropShares($4) == None) vcmp.msg $1 $2 Error, This property has not been shared
    else {
      vcmp.msg $1 $2 You are no longer sharing your $FBS.PropName($4) (ID: $4 $+ ) with $FBS.Propshares($4)
      !remini -n FBS.PropOwners.ini SHARES $4
      !remini -n FBS.PropSpawn.ini SPAWN $FBS.PropShares($4)
      !remini -n FBS.PropSpawn.ini STATUS $FBS.PropShares($4)
    }
  }
  elseif ($3 == sharedprops) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must register to be able to use this command.
    else {
      var %a = 1, %b = 0
      while (%a <= %propcount) && (%b == 0) {
        if ($FBS.PropShares(%a) == $vcmp.name($1, $2)) {
          !inc %b
        }
        !inc %a
      }
      if (%b == 0) vcmp.msg $1 $2 You do not share a property
      elseif (%b >= 1) vcmp.msg $1 $2 You currently share properties:[ $FBS.getmysharedprops($1, $2) $chr(93)
    }
  }
  elseif ($3 == myprops) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must register to be able to use this command.
    elseif ($FBS.MyProps($1, $2) == 0) vcmp.msg $1 $2 You do not own a property
    elseif ($FBS.MyProps($1, $2) == 1) {
      vcmp.msg $1 $2 You currently own 1 property:[ $FBS.getmyprops($1, $2) $chr(93)
    }
    elseif ($FBS.MyProps($1, $2) == 2) {
      vcmp.msg $1 $2 You currently own 2 properties:[ $FBS.getmyprops($1, $2) $chr(93)
    }
  }
  elseif ($3 == addprop) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 10.
    elseif ($FBS.Level($1, $2) < 10) vcmp.msg $1 $2 Error, You need to be at least level 10 to use this command.
    elseif (!$4) vcmp.msg $1 $2 Error - Correct Syntax: ! $+ $3 <Cost> <Name>
    elseif (!$5) vcmp.msg $1 $2 Error - Correct Syntax: ! $+ $3 <Cost> <Name>
    elseif ($4 !isnum) vcmp.msg $1 $2 Error, Invalid Property Cost
    elseif (. isin $4) || (, isin $4) || (- isin $4) vcmp.msg $1 $2 Error, No negative or decimal Property Cost
    else {
      vcmp.msg $1 $2 Property Added, Price: $ $+ $4 $+ , Name: $5-
      !writeini -n FBS.PropCount.ini COUNT Count $calc($FBS.PropCount + 1)
      !writeini -n FBS.PropOwners.ini OWNERS $FBS.PropCount Vice City
      !writeini -n FBS.PropNames.ini NAMES $FBS.PropCount $5-
      !writeini -n FBS.PropCosts.ini COSTS $FBS.PropCount $4
      !writeini -n FBS.PropLocs.ini x $FBS.PropCount $vcmp.location($1, $2).x
      !writeini -n FBS.PropLocs.ini y $FBS.PropCount $vcmp.location($1, $2).y
      !writeini -n FBS.PropLocs.ini z $FBS.PropCount $vcmp.location($1, $2).z
      !writeini -n FBS.PropSpawn.ini LOCATION $FBS.PropCount $calc($vcmp.location($1, $2).x - 2) $calc($vcmp.location($1, $2).y + 2) $vcmp.location($1, $2).z
      vcmp.newpickup $1 407 $calc($vcmp.location($1, $2).x + 2) $vcmp.location($1, $2).y $vcmp.location($1, $2).z
      fbs.checkprops   
    }
  }

Offline Daniel95

  • Made Man
  • ***
  • Posts: 120
  • NOU!!!!
    • View Profile
Re: Scripts needed!!!
« Reply #5 on: March 18, 2009, 03:52:14 pm »
maybe it doesn't work just try it ;)

Its will not work because its work only for FBS scripts  :P
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

Offline chn batista

  • Wiseguy
  • **
  • Posts: 66
  • nothing
    • View Profile
Re: Scripts needed!!!
« Reply #6 on: March 18, 2009, 04:17:31 pm »
yeah you are right it must doesn't work!! so don't try it...... ;D

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: Scripts needed!!!
« Reply #7 on: March 18, 2009, 04:26:35 pm »
thanx for the scripts  :D

i am now searching for following scripts:
!crime (to post that you are an criminal)
!copcall (to call normal cops)
!swatcall (to call swats)
!suspect (to suspect someone)
!wanted (to see the wanted list)

thats it

oh and when a wanted guys dies the killer should get some money...

can some one show me how to make commands like !ad or !taxi
« Last Edit: March 18, 2009, 04:30:52 pm by [DGC]Doomer »

Offline Rusty

  • Street Thug
  • *
  • Posts: 7
    • View Profile
Re: Scripts needed!!!
« Reply #8 on: March 18, 2009, 05:20:53 pm »
!ad Command for FBS Scripts.


Code: [Select]
  elseif ($3 == ad) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 Must be logged in.
    elseif (!$4) vcmp.msg $1 $2 Syntax: ! $+ $3 <text>
    elseif (%advert == on) vcmp.msg $1 $2 Advert already posted, wait 10secs to Advert again.
    elseif ($FBS.actcash($1, $2) == 1) vcmp.msg $1 $2 You must have $50 to Advertise.
    else {
      FBS.DecCash $1 $2 50
      set %advert On
      vcmp.say $1 ** Advert: $4- $+ , Contact $vcmp.name($1, $2) $+ !
      timer 1 10 set %advert off
    }
  }


!taxi Command for FBS Scripts.

Code: [Select]
  elseif ($3 == taxi) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 Must be logged in.
    else {
      vcmp.say $1 ** Taxi Required: $vcmp.area($1, $2) - Caller: $vcmp.name($1, $2)
   


Here's a very simple Weed Growing System.

Commands: !growweed, !pickweed


Code: [Select]
  elseif ($3 == growweed) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 Must be logged in.
    elseif (Weedfield !isin $FBS.Buildings(1, $2)) vcmp.msg $1 $2 You can only grow Weed in the Field.
    elseif ($readini(FBS.weed.ini,PLANTED,$vcmp.name($1, $2)) == Planted) vcmp.msg $1 $2 You are already growing Weed, wait till you pick then grow some more.
    else {
      vcmp.msg $1 $2 You are now growing Weed, wait till it grows.
      !writeini -n FBS.weed.ini PLANTED $vcmp.name($1, $2) Planted
      timer 1 60 vcmp.msg $1 $2 Your weed has Grown. Type !pickweed to pick it.
      !writeini -n FBS.weed.ini GROWN $vcmp.name($1, $2) Weedgrown
    }
  }
  elseif ($3 == pickweed) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 Must be logged in.
    elseif (Weedfield !isin $FBS.Buildings(1, $2)) vcmp.msg $1 $2 You Must be at the Field to Pick Weed.
    elseif ($readini(FBS.weed.ini,GROWN,$vcmp.name($1, $2)) == $null) vcmp.msg $1 $2 You must Grow your Weed first.
    else {
      vcmp.msg $1 $2 You have picked up your Units of Weed.
      !writeini -n FBS.weed.ini WEED $vcmp.name($1, $2) $calc($FBS.drugweed($1, $2) + 4)
      !remini -n FBS.weed.ini PLANTED $vcmp.name($1, $2)
      !remini -n FBS.weed.ini GROWN $vcmp.name($1, $2)
    }
  }

Weed Alias:
Code: [Select]
alias FBS.drugweed !return $iif($readini(FBS.weed.ini,WEED,$vcmp.name($1, $2)),$v1,0)

You just need to set the Weedfield Coords in the FBS.Buildings.ini file and your are all set.
« Last Edit: March 18, 2009, 05:29:51 pm by Rusty »

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: Scripts needed!!!
« Reply #9 on: March 18, 2009, 07:01:46 pm »
ohm ... how?

Offline Rusty

  • Street Thug
  • *
  • Posts: 7
    • View Profile
Re: Scripts needed!!!
« Reply #10 on: March 18, 2009, 11:06:34 pm »
In FBS.Buildings.ini put the follwoing line.

Code: [Select]
-942.9848,95.4452,-940.5682,88.7636,-970.0644,89.0217,-970.5945,95.4211=Weedfield
The Field is located at the Haitian Ghetto House try doing !growweed in the long patches of Grass till it displays the "Growing" message.  If you need a Screenshot of it PM me.

Now my Weed Commands are usable all you need now if a !smoke and a !sellweed commands and it'll be a good system for RPG Servers.
« Last Edit: March 18, 2009, 11:09:17 pm by Rusty »

Offline chn batista

  • Wiseguy
  • **
  • Posts: 66
  • nothing
    • View Profile
Re: Scripts needed!!!
« Reply #11 on: March 19, 2009, 08:46:22 am »
Code: [Select]
alias FBS.drugweed !return $iif($readini(FBS.weed.ini,WEED,$vcmp.name($1, $2)),$v1,0)this put to where????

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: Scripts needed!!!
« Reply #12 on: March 19, 2009, 11:06:18 am »
yeah thats great but these are still needed :-/

!crime (to post that you are an criminal)
!suspect (to suspect someone)
!wanted (to see the wanted list)
!sellweed (to sell the earned weed)

and how i can make that player can get more money from killing suspected players?

here is my supect command is there something wrong?

Code: [Select]
  elseif ($3 == suspect) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 Must be logged in.
    elseif ($FBS.Level($1, $2) < 1) vcmp.msg $1 $2 Error, You need to be at least level 1 to use this command.
    elseif (!$4) vcmp.msg $1 $2 Error - Correct Syntax: /c $3 <Nick/ ID> <Reason>
    elseif (!$5) vcmp.msg $1 $2 Error - Correct Syntax: /c $3 <Nick/ ID> <Reason>
    elseif ($vcmp.name($1, $FBS.ID($4)) == Unknown) vcmp.msg $1 $2 Error: Invalid Nick-Name
    else {
      var %a = 0
      while (%a <= %limit) {
      vcmp.announce $1 %a $vcmp.name suspected $4 for $5
      !inc %a
}
}
}
« Last Edit: March 22, 2009, 07:32:48 pm by [DGC]Doomer »

Offline [DGC]Doomer

  • Wiseguy
  • **
  • Posts: 64
    • View Profile
Re: Scripts needed!!!
« Reply #13 on: March 22, 2009, 07:33:04 pm »
no answers?

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Scripts needed!!!
« Reply #14 on: March 22, 2009, 08:56:10 pm »
Sorry, But in all your post are u asking something, Try thinking yourself. If it still wont work we are here to help you, Not to give you full made commands.