SA-MP Forums Archive
Spectate bug. - 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)
+--- Thread: Spectate bug. (/showthread.php?tid=628845)



Spectate bug. - danielpalade - 15.02.2017

-- DELETED --


Re: Spectate bug. - danielpalade - 16.02.2017

Bumping!


Re: Spectate bug. - Injury - 16.02.2017

Y_hooks is called first than the original callback.

Use:
PHP код:
public OnPlayerSpawn(playerid)
{
     if(
pInfo[playerid][pSpectating] != INVALID_PLAYER_ID)
     {
        
pInfo[playerid][pSpectating] = INVALID_PLAYER_ID;
        
PlayerTextDrawHide(playeridSpectate[playerid][0]);
            
PlayerTextDrawHide(playeridSpectate[playerid][1]);
            
PlayerTextDrawHide(playeridSpectate[playerid][2]);
            
PlayerTextDrawHide(playeridSpectate[playerid][3]);
            
ResetPlayerPosition(playerid);
     }
     return 
1;