Author Topic: Gotoloc and saveloc, for FBS.  (Read 3115 times)

0 Members and 1 Guest are viewing this topic.

Offline [XT]ariel[X]

  • Wiseguy
  • **
  • Posts: 58
  • Hi all!!
    • View Profile
    • American Server
Gotoloc and saveloc, for FBS.
« on: November 11, 2009, 02:36:55 am »
Hi all, Script Gotoloc and Saveloc for FBS
Create By: Me :P

Code: (Gotoloc) [Select]
 elseif ($3 == gotoloc) {
    if (!$4) {
      vcmp.msg $1 $2 Error - Invalid Syntax $+ , Usage: !gotoloc locationname
    }
    elseif ($5 != $null) vcmp.msg $1 $2 Error - Location Name Must be only One Word
    elseif ($readini(FBS.locations.ini, LOCS, $4) == $null) vcmp.msg $1 $2 Error - This Location Not Exists
    else {
      vcmp.msg $1 $2 Teleporting to Location: " $+ $4 $+ "
      vcmp.setcontrols $1 $2 0
      vcmp.announce $1 $2 ~h~Teleporting to $4
      !.timer 1 3 vcmp.setlocation $1 $2 $readini(FBS.locations.ini, LOCS, $4)
      !.timer 1 5 vcmp.setcontrols $1 $2 1
    }
  }

Code: (Saveloc) [Select]
 elseif ($3 == saveloc) {
    if (!$4) {
      vcmp.msg $1 $2 Error - Invalid Syntax $+ , Usage: !saveloc locationname
    }
    elseif ($5 != $null) vcmp.msg $1 $2 Error - Location Name Must be only One Word
    elseif ($readini(FBS.locations.ini, LOCS, $4) != $null) {
      vcmp.msg $1 $2 Error - Location $4 is Already in Use
    }
    else {
      !writeini -n FBS.locations.ini LOCS $4 $vcmp.location($1, $2)
      vcmp.msg $1 $2 Location " $+ $4 $+ " Saved Successfully
    }
  }

   
Download locations:

Download locations

Cya!!
« Last Edit: November 13, 2009, 10:28:13 pm by [XT]ariel[X] »
Clic in image from enter in my web :D

Offline Javi

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 149
    • View Profile
Re: Gotoloc and saveloc, for FBS.
« Reply #1 on: November 15, 2009, 04:26:41 pm »
Thanks, you should credit Greg for the text as well  ;)