Author Topic: Script request Teleport script  (Read 5009 times)

0 Members and 1 Guest are viewing this topic.

Offline theweirdgeek

  • Street Thug
  • *
  • Posts: 17
    • View Profile
Script request Teleport script
« on: February 27, 2010, 10:34:04 pm »
Hello,
If possible i would like to request a script that does the following...

When a user types /battle they get teleported to 0,0,-93.4009,-1119.9797,103.8871,123.5294,0,0,0,0,0,0

Once teleported can the system send a message to that user saying "Welcome to Jakes Server battle arena!"

Thanks for your help,
Jake

Offline theweirdgeek

  • Street Thug
  • *
  • Posts: 17
    • View Profile
Re: Script request Teleport script
« Reply #1 on: February 27, 2010, 10:50:57 pm »
Also how do i add weapon pickups to my server?

Thanks (: ,
Jake

Offline Skirmant

  • Made Man
  • ***
  • Posts: 134
    • View Profile
Re: Script request Teleport script
« Reply #2 on: February 27, 2010, 10:57:01 pm »
When a user types /battle they get teleported to 0,0,-93.4009,-1119.9797,103.8871,123.5294,0,0,0,0,0,0

That's the skin options.

Here's the actuall cords:

-1119.9797 103.8871 123.5294

Offline theweirdgeek

  • Street Thug
  • *
  • Posts: 17
    • View Profile
Re: Script request Teleport script
« Reply #3 on: February 27, 2010, 10:58:45 pm »
In game how do i find out the cords of my current player position?

Thanks,
Jake

Offline Skirmant

  • Made Man
  • ***
  • Posts: 134
    • View Profile
Re: Script request Teleport script
« Reply #4 on: February 28, 2010, 12:49:29 am »
Just type /s and the cords get saved to another text document in the Vice City folder.

Offline Gulk

  • VC:MP Beta Tester
  • Made Man
  • *
  • Posts: 143
    • View Profile
Re: Script request Teleport script
« Reply #5 on: February 28, 2010, 03:26:42 am »
In game how do i find out the cords of my current player position?

Thanks,
Jake
i use this
http://www.steve-m.com/downloads/tools/playerpos/

Offline theweirdgeek

  • Street Thug
  • *
  • Posts: 17
    • View Profile
Re: Script request Teleport script
« Reply #6 on: February 28, 2010, 01:06:41 pm »
Ok thanks for all your help for finding coords, If possible now could i request this script...

When a user types /battle they get teleported to
-1119.9797 103.8871 123.5294

Once teleported can the system send a message to that user saying "Welcome to Jakes Server battle arena!" (If possible)

Thanks for your help,
Jake

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Script request Teleport script
« Reply #7 on: February 28, 2010, 02:42:12 pm »
first of all, its /c battle.

second the coords are -93.4009, -1119.9797, 103.8871, 123.5294 (pawn supports rotation)

third, here it is:

Code: [Select]
if (strcmp(cmdtext, "battle", true)==0)
{
SetPlayerPos(playerid, -93.4009, -1119.9797, 103.8871, 123.5294, 0);
SendClientMessage(playerid, 0x33AA33AA, "Welcome to Jakes Server battle arena!");
return 1;
}

you have to put this code somewhere in your public OnPlayerCommandText(playerid, cmdtext[])

Offline -TriX-

  • Street Thug
  • *
  • Posts: 13
  • Elite Paradise VC-MP Server Administrator.
    • View Profile
    • Killzserver VC-MP
Re: Script request Teleport script
« Reply #8 on: March 01, 2010, 10:03:33 pm »
errrrmhh... ::) you cant use this format for cmds "/command" only !command or /c command  :)