05.09.2009, 10:32
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
[img width=960 height=768]/imageshack/img168/3152/samp008r.jpg[/img]
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]; }