08.06.2014, 18:23
Hello, I need some help with SetCameraBehindPlayer
Like you have SetCameraBehindPlayer when you're on foot, is there some way to reset the camera when you're driving a vehicle?
Код:
CMD:lv(playerid, params[]) { if(IsPlayerInVehicle(playerid,GetPlayerVehicleID(playerid))==1) { new vehicleid = GetPlayerVehicleID(playerid); SetVehiclePos(vehicleid, 1884.9293,956.5108,10.8203); SetVehicleZAngle(vehicleid, 270.1538); PutPlayerInVehicle(playerid, vehicleid, 0); SendClientMessage(playerid, COLOR_BLUE, "- Teleport - You have teleported to LV!"); } else { SetPlayerPos(playerid, 1884.9293,956.5108,10.8203); SetPlayerFacingAngle(playerid, 270.1538); SetCameraBehindPlayer(playerid); SendClientMessage(playerid, COLOR_BLUE, "- Teleport - You have teleported to LV!"); } return 1; }