• Welcome to Vice City Multiplayer.
 

Teleport command

Started by blade1994, November 18, 2008, 05:06:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blade1994

I dont kwon of this script its hard to get.. but i wanna teleport script. Like if a guy type !race, there go a place witch cars for race or !airport. there go to airport
or !freefall there go high-sky

Amenine

For which script GUS,WSV OR FBS... :P

blade1994


Amenine

#3
Heres the small example for u ....I hope others 2 u will get solved by You.. :P

elseif ($3 == airport) {  
    WSV.msg $2 Taking you to the International Airport..
    .timer 1 2 WSV.setlocation $2 -1463.359497 -858.807983 14.878179 0
  }


Type !airport And it will take u to the airport thats all..Enjoy..

Googly Woogly Woosh
Amenine

blade1994

Wow, nice! thanks, I go try it

[CB]CsabaBad

Quote from: Amenine on November 20, 2008, 05:40:27 AM
Heres the small example for u ....I hope others 2 u will get solved by You.. :P

elseif ($3 == airport) {  
    WSV.msg $2 Taking you to the International Airport..
    .timer 1 2 WSV.setlocation $2 -1463.359497 -858.807983 14.878179 0
  }


Type !airport And it will take u to the airport thats all..Enjoy..

Googly Woogly Woosh
Amenine
and this where let me be putting it in pls write it down the part thanks ahead Amenine

Amenine

Nope  ;D
Put it under commands like !getcar or what...just dont forget to close the brackets correctly.. ;)

JoJo_boy

Can you guys Find me one For GUSv9.0

Knucis

Quote from: JoJo_boy on November 30, 2008, 06:24:59 PM
Can you guys Find me one For GUSv9.0

Here is one
elseif ($2==!airport) {
vcmp.setlocation %id -1463.359497 -858.807983 14.878179 0
}

Amenine

#9
U were missing some details and plz provide place in between = and !airport..

elseif ($2 == !airport) {
  vcmp.msg %id Taking you to the International Airport..
  .timer 1 2 vcmp.setlocation %id -1463.359497 -858.807983 14.878179 0
}

Googly Woogly Woosh
Amenine

Have fun guys..
[off Topic]Knucis i found that you are the admin of Ultimate stunt server i want some help from u and if u too want to help me just PM me (Yes) than i will tell u my problem..Thanks

JoJo_boy

Thanks Guys Ill try it right now on my server (  Ultimate DM/stunt server (Jojo_boy)  )  ;D 

Knucis

Quote from: Amenine on December 01, 2008, 08:24:34 AM
U were missing some details and plz provide place in between = and !airport..

elseif ($2 == !airport) {
  vcmp.msg %id Taking you to the International Airport..
  timer 1 2 vcmp.setlocation %id -1463.359497 -858.807983 14.878179 0
}

Googly Woogly Woosh
Amenine

Have fun guys..
[off Topic]Knucis i found that you are the admin of Ultimate stunt server i want some help from u and if u too want to help me just PM me (Yes) than i will tell u my problem..Thanks
What kind of help do you want?

[NoN]Toiletduck

#12
Is there any reason why this wouldn't work?

  }   
  elseif (%id == (!dmarena) || (
  if ($vcmp.cmdcheck(!dmarena,%id) == fail) !halt
  else {
    vcmp.msg %id vcmp.msg %id Taking you to the Death Match arena...
    .timer 1 2 vcmp.setlocation %id -1463.359497 -858.807983 14.878179 0
  }

VRocker

Look at this bit:

elseif (%id == (!dmarena) || (

First off your checking if the player id is (!dmarena, if should be $2 == !dmarena

Secondly why have you put || ( at then end? || = or and the bracket should be a curly brace like { not a bracket.

Fixed line would be:

elseif ($2 == !dmarena) {

Also make sure !dmarena is in your cmdlist for the cmdcheck

Oh and one more thing...

vcmp.msg %id vcmp.msg %id Taking you to the Death Match arena...

notice what your doing here? it wont stop it working but i think its best to be pointed out. you've done vcmp.msg %id twice, you only need it once

This should work aslong as theres nothing broken above these lines. Remember to check mircs status window for any major errors


[NoN]Toiletduck

It works now thank you VRocker.
My problem was little things like getting parameters mixed up and being careless.

Thank you.