I have a question
#2

HELP bot can be done by irc that if you chat something IG it'll return something but I think that's far behind your head.

Cars thing:
pawn Код:
if(!strcmp("/gotocar", cmdtext, true))
{
SetPlayerPos(playerid, 1266.5499,-2043.4893,68.3713);
return 1;
}

SetPlayerPos is setting the players position to the X,Y,Z coords stated in the SetPlayerPos in this case:
pawn Код:
1266.5499,-2043.4893,68.3713
pawn Код:
AddPlayerClass(0,1266.5499,-2043.4893,59.2211,68.3713,0,0,0,0,0,0); // Cars
Here the second third and fourth (each X Y Z coords are separated with comma's. So I have only copied the X Y Z coords from AddPlayerClass to SetPlayerPos

The fourth coordinate is
pawn Код:
68.3713
this is the coordinate of the player on which angle (changing view) they are standing. You can also put:
pawn Код:
if(!strcmp("/gotocar", cmdtext, true))
{
SetPlayerPos(playerid, 1266.5499,-2043.4893,68.3713);
SetPlayerAngle(playerid,68.3713);
return 1;
}
Reply


Messages In This Thread
I have a question - by Xpack - 23.01.2010, 06:56
Re: I have a question - by KnooL - 23.01.2010, 07:01
Re: I have a question - by Xpack - 23.01.2010, 07:10
Re: I have a question - by [dN]Eagle - 23.01.2010, 07:15
Re: I have a question - by Xpack - 23.01.2010, 07:20
Re: I have a question - by bluray - 23.01.2010, 07:54
Re: I have a question - by Xpack - 23.01.2010, 08:13
Re: I have a question - by llama - 23.01.2010, 08:19

Forum Jump:


Users browsing this thread: 1 Guest(s)