Bug with teleportations with/without Vehicle. ‼!
#10

pawn Код:
if (strcmp("/taxi", cmdtext, true, 10) == 0)
        {
          new State[MAX_PLAYERS];
            State[playerid] = GetPlayerState(playerid);
            if (IsPlayerInAnyVehicle(playerid) && State[playerid] == PLAYER_STATE_DRIVER)
            {
                LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
                SetPlayerInterior(GetPlayerVehicleID(playerid), 0);
                SetVehicleZAngle(GetPlayerVehicleID(playerid),0);
                return SetVehiclePos(GetPlayerVehicleID(playerid),-1990.7428,90.9115,27.6799);
            }
            else
            {
                SetPlayerPos(playerid,-1990.7428,90.9115,27.6799);
                SetPlayerInterior(playerid, 0);
            }
        return 1;
    }
This should work.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)