Spectacing problem.
#1

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.
Reply
#2

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

Anyone ?
Reply
#4

Код:
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
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)