if (strcmp(cmdtext, "/CommandName", true) == 0) { if (IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), 2451.863525, -1660.128540, 13.304687);//Replace with the position you want to TP to SetVehicleZAngle(GetPlayerVehicleID(playerid), 85.314010); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } if (!IsPlayerInAnyVehicle(playerid)) { SetPlayerPos(playerid, 2451.863525, -1660.128540, 13.304687);//Replace with the position you want to TP to SetPlayerFacingAngle(playerid, 85.314010); } SetPlayerInterior(playerid, 0); SendClientMessage(playerid, 0x000000FF, " Message sent when teleported "); return 1; }