• Welcome to Vice City Multiplayer.
 

Gotoloc and saveloc, for FBS.

Started by [XT]ariel[X], November 11, 2009, 12:36:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[XT]ariel[X]

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!!
Clic in image from enter in my web :D

Javi

Thanks, you should credit Greg for the text as well  ;)