new cartype = GetPlayerVehicleID(playerid);
new State=GetPlayerState(playerid);
if(State!=PLAYER_STATE_DRIVER)
{
SetPlayerPos(playerid,2343.4612,1392.0447,10);//gyalogos
}
else if(IsPlayerInVehicle(playerid, cartype) == 1)
{
SetVehiclePos(cartype,2343.4612,1392.0447,10);//jármûves
SetVehicleZAngle(cartype,270);
}
else
{
SetPlayerPos(playerid,2343.4612,1392.0447,10);//gyalogos
}