Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: [XT]ariel[X] on November 11, 2009, 02:36:55 am

Title: Gotoloc and saveloc, for FBS.
Post by: [XT]ariel[X] 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 (http://www.mediafire.com/download.php?nzny53lnalt)

Cya!!
Title: Re: Gotoloc and saveloc, for FBS.
Post by: Javi on November 15, 2009, 04:26:41 pm
Thanks, you should credit Greg for the text as well  ;)