Spectate bug. -
Re: Spectate bug. -
Re: Spectate bug. -
Y_hooks is called first than the original callback.
PHP код:
public OnPlayerSpawn(playerid)
{
if(pInfo[playerid][pSpectating] != INVALID_PLAYER_ID)
{
pInfo[playerid][pSpectating] = INVALID_PLAYER_ID;
PlayerTextDrawHide(playerid, Spectate[playerid][0]);
PlayerTextDrawHide(playerid, Spectate[playerid][1]);
PlayerTextDrawHide(playerid, Spectate[playerid][2]);
PlayerTextDrawHide(playerid, Spectate[playerid][3]);
ResetPlayerPosition(playerid);
}
return 1;
}