21.10.2013, 17:40
I don't know why but even im the passenger when I teleport to this map, the vehicle and the driver also teleported and that is wrong. IT SHOULD ONLY BE ME.
Furthermore...
So I entered the vehicle as a passenger, then I do /rm. After I teleported to this place I became the driver and the driver also teleported but his beside me outside the vehicle.
Can you please help me with this? I only want if im in a vehicle as a passenger then I teleport to this place it should teleport me but WITHOUT the Driver and his vehicle.
Furthermore...
So I entered the vehicle as a passenger, then I do /rm. After I teleported to this place I became the driver and the driver also teleported but his beside me outside the vehicle.
Can you please help me with this? I only want if im in a vehicle as a passenger then I teleport to this place it should teleport me but WITHOUT the Driver and his vehicle.
Код:
CMD:rm(playerid, params[]) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetPlayerPos(playerid, -4411.3794,4207.3994,187.6803); SetPlayerFacingAngle(playerid, 0); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); SetCameraBehindPlayer(playerid); } else { new veh = GetPlayerVehicleID(playerid); SetVehiclePos(veh, -4411.3794,4207.3994,187.6803); SetVehicleZAngle(veh, 0); LinkVehicleToInterior(veh, 0); SetVehicleVirtualWorld(veh, 0); PutPlayerInVehicle(playerid, veh, 0); SetCameraBehindPlayer(playerid); } return 1; }