• Welcome to Vice City Multiplayer.
 

nogoto for fbs?

Started by gta5, March 25, 2009, 03:33:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gta5

how would you make /c nogoto on/off for fbs?

thanks

Amenine

Here try this..
First You need to identify that player has nogoto on or off..so change ur goto command with this one..
elseif ($3 == goto) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 2.
    elseif ($FBS.Level($1, $2) < 2) vcmp.msg $1 $2 Error, You need to be at least level 2 to use this command.
    elseif (!$4) vcmp.msg $1 $2 Error - Correct Syntax: /c $3 <Nick/ ID>
    elseif ($hget(gotooff,$vcmp.name( $1, $2 )) == off ) vcmp.say $1 $vcmp.name( $1, $2 ) $+ 's goto is currently disabled.
    elseif ($vcmp.getid($1, $4) == 255) vcmp.msg $1 $2 Error: Invalid Nick-Name
    elseif ($FBS.rwarstatus($FBS.ID($4)) == 1) vcmp.msg $1 $2 This person is taking part in the roof fighters mingame, wait until the round is over.   
    else {
      vcmp.say $1 ** Sending:[ $vcmp.name($1, $2) $chr(93) to:[ $vcmp.name($1, $FBS.ID($4)) $chr(93)
      vcmp.msg $1 $2 District:[ $+ $vcmp.area($1, $FBS.ID($4)) $+ $chr(93)
      vcmp.setlocation $1 $2 $calc($vcmp.location($1, $FBS.ID($4)).x + 2) $vcmp.location($1, $FBS.ID($4)).y $calc($vcmp.location($1, $FBS.ID($4)).z - 1.12)
    }
  }


And for doing nogoto on or off..
elseif ($3 == nogoto) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 2.
    elseif ($FBS.Level($1, $2) < 2) vcmp.msg $1 $2 Error, You need to be at least level 2 to use this command.
    elseif ($hget(gotooff,$vcmp.name( $1, $2 )) == off ) vcmp.say $1 $vcmp.name( $1, $2 ) $+ 's has /c nogoto on.
    elseif ($4 == on) {
      if ($hget(gotooff,$vcmp.name( $1, $2 )) == off ) vcmp.msg $1 $vcmp.name( $1, $2 ) - your goto is already disabled.
      else {
        vcmp.msg $1 $2 NoGoto - Old Setting:Off , New Setting:On
        vcmp.msg $1 $2 All players cannot teleport to you now
        !hadd -m gotooff $vcmp.name( $1, $2 ) off
      }
    }
    elseif ($4 == off) {
      if ($hget(gotooff,$vcmp.name( $1, $2 )) != off ) vcmp.msg $1 your goto is already enabled.
      else {
        vcmp.msg $1 $2 NoGoto - Old Setting:On , New Setting:Off
        vcmp.msg $1 $2 All players can teleport to you now
        !hdel gotooff $vcmp.name( $1, $2 )
      }
    }
  }

Although i didnt use FBS but tried to make one..hope it will work..
Note:Untested

Regards
Amenine

Darkness


Amenine

Here for GUS..Works 100%.. :P
Here replace your old goto command with this one!!
elseif ($2 == goto) {
    if ($vcmp.cmdcheck(!goto,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Correct Syntax: $2 <name>
    elseif (%a == -1) vcmp.msg %id Error - Absent ID/Name
    elseif ($hget(gotooff,$vcmp.name(%a)) == off ) vcmp.say $vcmp.name(%a) $+ 's goto is currently disabled.
    elseif ($vcmp.cost(%b) > $vcmp.cash(%b)) vcmp.msg %id Error - You need atleast $ $+ $bytes($vcmp.cost(%b),b) to use this command
    else {
      vcmp.cash- %b $vcmp.cost(%b)
      vcmp.setcont %a 0
      vcmp.msg %id [Transferring]: $chr(91) %name $chr(93) $+ , [To]: $chr(91) $vcmp.name(%a) $chr(93)
      .timer 1 1 vcmp.announce %id Teleporting.
      .timer 1 2 vcmp.announce %id Teleporting..
      .timer 1 3 vcmp.goto %b %a
      .timer 1 3 vcmp.setcont %a 1
    }
  }


And for doing nogoto on or off!!
elseif ($2 == nogoto) {
    if ($vcmp.cmdcheck(!goto,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Correct Syntax: /c nogoto <on/off?
    elseif ($3 == $chr(79)) vcmp.msg %id Absent parameter on/off
    elseif ($hget(gotooff,$vcmp.name(%a)) == off ) vcmp.say $vcmp.name(%a) $+ 's has /c nogoto on.
    elseif ($3 == on) {
      if ($hget(gotooff,$vcmp.name(%id)) == off ) vcmp.msg $vcmp.name(%id) - your goto is already disabled.
      else {
        vcmp.msg %id NoGoto - Old Setting:Off , New Setting:On
        vcmp.msg %id All players cannot teleport to you now
        !hadd -m gotooff $vcmp.name(%id) off
      }
    }
    elseif ($3 == off) {
      if ($hget(gotooff,$vcmp.name(%id)) != off ) vcmp.msg %id your goto is already enabled.
      else {
        vcmp.msg %id NoGoto - Old Setting:On , New Setting:Off
        vcmp.msg %id All players can teleport to you now
        !hdel gotooff $vcmp.name(%id)
      }
    }
  }


Cheers
Amenine

Darkness

Thx u very much Amenine  ;)

Amenine


gta5

 Thanks alot for trying Amenine, butthe command didnt work properly, I can turn the nogoto on but it wont turn off. If any one else can help me it would be appreciated

thanks
-gta5

[XT]ariel[X]

and for WSV or PsyScript??
Clic in image from enter in my web :D

Edward_RD

Hya all..

NOGOTO FOR FBS ...

elseif ($3 == nogoto) {
if ($4) {
if ($4 == on) {
if ($hget(FBS.Nogoto,$vcmp.name($1, $2)) == on) vcmp.msg $1 $2 Error: You have you your nogoto allready on!
else {
hadd -m FBS.Nogoto $vcmp.name($1, $2) on
vcmp.msg $1 $2 NoGoto - Old Setting: Off , New Setting: On
vcmp.msg $1 $2 All players cannot teleport to you now.
}
}
elseif ($4 == off) {
if (!$hget(FBS.Nogoto,$vcmp.name($1, $2))) vcmp.msg $1 $2 Error: You have you your nogoto allready off!
else {
hdel FBS.Nogoto $vcmp.name($1, $2)
vcmp.msg $1 $2 NoGoto - Old Setting: On , New Setting: Off
vcmp.msg $1 $2 All players can teleport to you now.
}
}
else vcmp.msg $1 $2 Error: Correct Syntax: /c $3
}
else vcmp.msg $1 $2 Error: Correct Syntax: /c $3
}


  elseif ($3 == goto) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in.
    elseif (!$4) vcmp.msg $1 $2 Error - Correct Syntax: /c $3
    elseif ($vcmp.getid($1, $4) == 255) vcmp.msg $1 $2 Error: Invalid Nick-Name
    elseif ($FBS.rwarstatus($FBS.ID($4)) == 1) vcmp.msg $1 $2 This person is taking part in the roof fighters mingame, wait until the round is over.   
elseif ($hget(FBS.Nogoto,$vcmp.name($1, $FBS.ID($4))) == on) vcmp.msg $1 $2 This person has his nogoto on.
    else {
      vcmp.msg $1 $2 Teleporting you to:[ $vcmp.name($1, $FBS.ID($4)) $chr(93)
      vcmp.msg $1 $2 District:[ $+ $vcmp.area($1, $FBS.ID($4)) $+ $chr(93)
      vcmp.setlocation $1 $2 $calc($vcmp.location($1, $FBS.ID($4)).x + 2) $vcmp.location($1, $FBS.ID($4)).y $calc($vcmp.location($1, $FBS.ID($4)).z - 1.12)
    }
  }


Must add goto and  nogoto ..

Some bug , let me know .

Regars.
Edward_RD

Sephiroth

#9
Quote from: Edward_RD on October 27, 2009, 04:38:22 AM
Hya all..

NOGOTO FOR FBS ...

elseif ($3 == nogoto) {
if ($4) {
if ($4 == on) {
if ($hget(FBS.Nogoto,$vcmp.name($1, $2)) == on) vcmp.msg $1 $2 Error: You have you your nogoto allready on!
else {
hadd -m FBS.Nogoto $vcmp.name($1, $2) on
vcmp.msg $1 $2 NoGoto - Old Setting: Off , New Setting: On
vcmp.msg $1 $2 All players cannot teleport to you now.
}
}
elseif ($4 == off) {
if (!$hget(FBS.Nogoto,$vcmp.name($1, $2))) vcmp.msg $1 $2 Error: You have you your nogoto allready off!
else {
hdel FBS.Nogoto $vcmp.name($1, $2)
vcmp.msg $1 $2 NoGoto - Old Setting: On , New Setting: Off
vcmp.msg $1 $2 All players can teleport to you now.
}
}
else vcmp.msg $1 $2 Error: Correct Syntax: /c $3
}
else vcmp.msg $1 $2 Error: Correct Syntax: /c $3
}


 elseif ($3 == goto) {
   if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in.
   elseif (!$4) vcmp.msg $1 $2 Error - Correct Syntax: /c $3
   elseif ($vcmp.getid($1, $4) == 255) vcmp.msg $1 $2 Error: Invalid Nick-Name
   elseif ($FBS.rwarstatus($FBS.ID($4)) == 1) vcmp.msg $1 $2 This person is taking part in the roof fighters mingame, wait until the round is over.  
elseif ($hget(FBS.Nogoto,$vcmp.name($1, $FBS.ID($4))) == on) vcmp.msg $1 $2 This person has his nogoto on.
   else {
     vcmp.msg $1 $2 Teleporting you to:[ $vcmp.name($1, $FBS.ID($4)) $chr(93)
     vcmp.msg $1 $2 District:[ $+ $vcmp.area($1, $FBS.ID($4)) $+ $chr(93)
     vcmp.setlocation $1 $2 $calc($vcmp.location($1, $FBS.ID($4)).x + 2) $vcmp.location($1, $FBS.ID($4)).y $calc($vcmp.location($1, $FBS.ID($4)).z - 1.12)
   }
 }


Must add goto and  nogoto ..

Some bug , let me know .

Regars.
Edward_RD



#1. this topic query has already been answered.
#2. you stole this script.
#3. please gtfo.

Edward_RD

Hya  all

1: I didn't knew .
2: I never stole gta5's nogoto :S
3: Sephiroth die
4: I don't need steal scripts .. I am the best :D


Regars
Edward_RD

gta5

ye he didnt steal mine and amenines was bugged so I edited his anf fixed it :P

Jc18

he doesnt stole he just copy and paste copy and paste copy and paste copy and paste


Edward_RD

#13
removed due to abuse

Squida