Spectating bug: After 5secs you see your self hanging in mid air - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Spectating bug: After 5secs you see your self hanging in mid air (
/showthread.php?tid=95848)
Spectating bug: After 5secs you see your self hanging in mid air -
hipy - 05.09.2009
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]
Re: toggleplayerspectating bug -
gijsmin - 05.09.2009
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
Re: toggleplayerspectating bug -
hipy - 05.09.2009
pressed post to soon?
well its more about the bug( see your self hanging in mid air etc )
Re: toggleplayerspectating bug -
hipy - 05.09.2009
added a pic
Re: toggleplayerspectating bug -
hipy - 05.09.2009
Sombody said this has to do with setspawninfo but i delted that but it was still the same. How can i fix this?