16.11.2011, 17:34
As I read before with Camera
This is my last. I am out of other ways
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(vehicleid == tram) {
new
playerState = GetPlayerState(playerid);
if (playerState == PLAYER_STATE_PASSENGER || playerState == PLAYER_STATE_DRIVER) {
tram = GetPlayerVehicleID(playerid);
new
Float:vehx, Float:vehy, Float:vehz;
GetVehiclePos(tram, vehx, vehy, vehz);
SetPlayerPos(playerid, vehx+1, vehy+1, vehz);
SetCameraBehindPlayer(playerid);
}
}
return 1;
}