SA-MP Forums Archive
Spectacing problem. - 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: Spectacing problem. (/showthread.php?tid=519139)



Spectacing problem. - ShoortyFl - 12.06.2014

So the problem is when I set on OnPlayerConnect

pawn Код:
TogglePlayerSpectating(playerid, 1);
to remove the buttons it removes them, but when it proceed on dialogs

on the first dialog it wont show the buttons and its like this

pawn Код:
SpawnPlayer(playerid);
                SetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
                SetPlayerFacingAngle(playerid, 280);
                TogglePlayerControllable(playerid, 0);
                SetPlayerInterior(playerid, 3);
                SetCameraBehindPlayer(playerid);
                TogglePlayerSpectating(playerid, false);
but on other dialogs the buttons appear even when i spawn.


Re: Spectacing problem. - ShoortyFl - 13.06.2014

Sorry for dp but does anyone know this is really important.


Re: Spectacing problem. - ShoortyFl - 13.06.2014

Anyone ?


Re: Spectacing problem. - appleomax - 13.06.2014

Код:
forward DialogDelay(i);

public OnPlayerRequestClass(playerid)
{
    SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0);
    TogglePlayerSpectating(playerid, true);
    SetTimerEx("DialogDelay", 100, 0, "i", playerid);
}

public DialogDelay(i)
{
   // Your login/register dialog
}