2 questions -
Futurezx - 30.05.2009
I have 2 questions.
1.I have made with MTA a jump high in air but how do i get coordinates to teleport up there?
2.I have made a moving object but when i do comment to move up it says "The object has been moved up!" and under that it says Unkown server command but the object isn't moving :S
Re: 2 questions -
shitbird - 30.05.2009
Quote:
Originally Posted by Futurezx
I have 2 questions.
1.I have made with MTA a jump high in air but how do i get coordinates to teleport up there?
2.I have made a moving object but when i do comment to move up it says "The object has been moved up!" and under that it says Unkown server command but the object isn't moving :S
|
1. Place a Miscellanious object where you want to tele, then convert it, and then take the coordinates, X,Y,Z and use SetPlayerPos using those, delete the object after doing that.
2. Add a return 1; on the bottom.
Re: 2 questions -
Futurezx - 30.05.2009
Thanks it helped me a lot
But how with vehicles?
Re: 2 questions -
shitbird - 30.05.2009
Use Simon's DEBUG filterscript, after downloading & loading it into your server, teleport to the stunt, then use /v 411 (infernus), it will give you Infernus car, simple.
Re: 2 questions -
Futurezx - 30.05.2009
Where i find his script do you have a link or something?
Re: 2 questions -
shitbird - 30.05.2009
Sure, but next time, use search, it will save you from being Flamed. :P
http://forum.sa-mp.com/index.php?topic=19488.0
Re: 2 questions -
Futurezx - 30.05.2009
About the moving object again
Look this screenshot when i want to move it up.:
http://i40.tinypic.com/30xc1fs.jpg
Код:
if( !strcmp(cmdtext,"/mou",true ))
{
MoveObject(helipad,382.001038,2500.741211,52.551369);
SendClientMessage(playerid,COLOR_RED, "The object has been moved up! ");
return 1;
}
if( !strcmp(cmdtext,"/mod",true ))
{
MoveObject(helipad,372.814697,2547.501709,14.510818);
SendClientMessage(playerid, COLOR_RED, "The object has been moved down! ");
return 1;
}
Re: 2 questions -
shitbird - 30.05.2009
add speed amount in both of them.
MoveObject(helipad,382.001038,2500.741211,52.55136 9,speed);
MoveObject(helipad,372.814697,2547.501709,14.51081 8,speed);
edit:
also make OnPlayerCommandText return a value(positive).
Re: 2 questions -
Futurezx - 30.05.2009
I'm new at scripting only for 2 days so can you make a example?
Re: 2 questions -
shitbird - 30.05.2009
pawn Код:
if( !strcmp(cmdtext,"/mou",true ))
{
MoveObject(helipad,382.001038,2500.741211,52.551369,100);
SendClientMessage(playerid,COLOR_RED, "The object has been moved up! ");
return 1;
}
if( !strcmp(cmdtext,"/mod",true ))
{
MoveObject(helipad,372.814697,2547.501709,14.510818,100);
SendClientMessage(playerid, COLOR_RED, "The object has been moved down! ");
return 1;
}