02.03.2012, 06:25
(
Last edited by safari; 02/03/2012 at 07:19 AM.
)
А что если так попробывать
P.S Щас проверил всё работает!Камера переключается на игрока!
PHP Code:
Vehicle[MAX_PLAYERS];
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vid;
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER){
vid = GetPlayerVehicleID(playerid);
Vehicle[playerid] = vid;
return 1;
}
else
if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER){
if(GetVehicleModel(Vehicle[playerid]) == 449) SetCameraBehindPlayer(playerid);
Vehicle[playerid] = -1;
return 1;
}
return 1;
}