12.10.2013, 13:16
Get rid of this section and see what it's like:
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetPVarInt(playerid,"used") == 0)
{
new p = GetPlayerVehicleID(playerid);
pObj[playerid] = CreatePlayerObject(playerid,19300, 0.0000, -1282.9984, 10.1493, 0.0000, -1, -1, 100);
AttachPlayerObjectToVehicle(playerid,pObj[playerid],p,-0.314999, -0.195000, 0.510000, 0.000000, 0.000000, 0.000000);
AttachCameraToPlayerObject(playerid,pObj[playerid]);
SetPVarInt(playerid,"used",1);
}
}
else if(GetPVarInt(playerid,"used") == 1)
{
SetCameraBehindPlayer(playerid);
DestroyPlayerObject(playerid,pObj[playerid]);
SetPVarInt(playerid,"used",0);
}