21.08.2012, 21:12
Hey guys. I was wondering how to make my teleport command to teleport the player with the car and to set the camera behind the player? Here is the command.
+REP for the dude who help me.
pawn Код:
if (strcmp("/ls", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 2459.2891,-1658.8856,12.9641);
SetPlayerFacingAngle(playerid, 89.6031);
new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, 280, "%s has been teleported to Los Santos. (/ls)", pname);
SendClientMessageToAll(COLOR_KNIGHTBLUE, string);
return 1;
}