Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: theweirdgeek on February 27, 2010, 08:34:04 PM

Title: Script request Teleport script
Post by: theweirdgeek on February 27, 2010, 08: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
Title: Re: Script request Teleport script
Post by: theweirdgeek on February 27, 2010, 08:50:57 PM
Also how do i add weapon pickups to my server?

Thanks (: ,
Jake
Title: Re: Script request Teleport script
Post by: Skirmant on February 27, 2010, 08:57:01 PM
Quote from: theweirdgeek on February 27, 2010, 08:34:04 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
Title: Re: Script request Teleport script
Post by: theweirdgeek on February 27, 2010, 08:58:45 PM
In game how do i find out the cords of my current player position?

Thanks,
Jake
Title: Re: Script request Teleport script
Post by: Skirmant on February 27, 2010, 10:49:29 PM
Just type /s and the cords get saved to another text document in the Vice City folder.
Title: Re: Script request Teleport script
Post by: Aaron on February 28, 2010, 01:26:42 AM
Quote from: theweirdgeek on February 27, 2010, 08:58:45 PM
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/
Title: Re: Script request Teleport script
Post by: theweirdgeek on February 28, 2010, 11:06:41 AM
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
Title: Re: Script request Teleport script
Post by: thijn on February 28, 2010, 12: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:


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[])
Title: Re: Script request Teleport script
Post by: -TriX- on March 01, 2010, 08:03:33 PM
errrrmhh... ::) you cant use this format for cmds "/command" only !command or /c command  :)