24.06.2009, 02:15
Your missing something:
You should also add the SetPlayerPos if the player is in the vehicle .
pawn Код:
if(!strcmp(cmdtext,"/A",true)) // Created By: http://Avidor.co.cc/GTA/Teleports.php
{
if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),A,A,A); // You would need to type the teleport 2 times for it to actually teleport the car and the player.
if(!IsPlayerInAnyVehicle(playerid)) SetPlayerPos(playerid,A,A,A);
SendClientMessage(playerid,A,"A");
return 1;
}