Spectating bug: After 5secs you see your self hanging in mid air
#1

Hi i have a weird bug at my sumo mode
On death i do toggleplayer spectating and then it picks a random player

But when you spectate that player you see him for like 10secs and then you see your self hanging in the air. How can i fix this

Does sombody btw know if you spec sombody and he dies etc that you can auto move on to next 1

spec part

Код:
new vehicleid = GetPlayerVehicleID(playa);
new playa = GetRandomPlayer();
TogglePlayerSpectating(playerid, 1);
PlayerSpectateVehicle(playerid,vehicleid);

stock GetRandomPlayer()
{
  new yplayer[MAX_SLOTS];
  for (new y = 0; y != MAX_PLAYERS; y ++) {
    if (IsPlayerConnected(y)) {
      yplayer[0] ++;
      yplayer[yplayer[0]] = y;
    }
  }
  return yplayer[random(yplayer[0])+1];
}
[img width=960 height=768]/imageshack/img168/3152/samp008r.jpg[/img]
Reply
#2

it is normal with spectating that you will respawn
Look into Hamptonin Admin Filterscript there is a example to don't hang in the air and goto the same pos where you started the spectating
And the second question: OnPlayerDeath
Reply
#3

pressed post to soon?

well its more about the bug( see your self hanging in mid air etc )
Reply
#4

added a pic
Reply
#5

Sombody said this has to do with setspawninfo but i delted that but it was still the same. How can i fix this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)