• Welcome to Vice City Multiplayer.
 

Script request Teleport script

Started by theweirdgeek, February 27, 2010, 08:34:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

theweirdgeek

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

theweirdgeek

Also how do i add weapon pickups to my server?

Thanks (: ,
Jake

Skirmant

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
I know advance mIRC, average C++, basic Pawn & Squirrel, very basic Java Script.

theweirdgeek

In game how do i find out the cords of my current player position?

Thanks,
Jake

Skirmant

Just type /s and the cords get saved to another text document in the Vice City folder.
I know advance mIRC, average C++, basic Pawn & Squirrel, very basic Java Script.

Aaron


theweirdgeek

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

thijn

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[])


-TriX-

errrrmhh... ::) you cant use this format for cmds "/command" only !command or /c command  :)


www.life-urban.co.cc