27.06.2012, 12:30
Hello,
What's wrong with this code?
SetPlayerCameraPos+LookAt does not work.
Thank you.
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(checkpointid == NFS)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1,"[ERROR]: You Should Be In A Vehicle First!");
SetPlayerInterior(playerid,1);
LinkVehicleToInterior(vehicleid,1);
if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(vehicleid,624.7927,-22.8007,1001.6973);
SetVehicleZAngle(vehicleid,0.0096);
SetPlayerPos(playerid,624.7927,-22.8007,1001.6973);
SetPlayerCameraPos(playerid,623.9209,-18.4105,1021.7413);
SetPlayerCameraLookAt(playerid,624.7927,-22.8007,1001.6973);
TogglePlayerControllable(playerid, 1);
}
return 1;
}
SetPlayerCameraPos+LookAt does not work.
Thank you.