PlayerRequestClass - Quick Question!! :)
#4

You could use TogglePlayerSpectating(playerid, 0 = false & 1 = true), I'll show you a quick code to remove it.

pawn Код:
#define DIALOG_LOG          1

public OnPlayerConnect(playerid)
{
    TogglePlayerSpectating(playerid, 1);
    return true;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case DIALOG_LOG:
        {
            if(!response) return 1;
            if(response)
            {
                TogglePlayerSpectating(playerid, 0);
                SpawnPlayer(playerid);
                SetSpawnInfo(playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
                //More Stuff
            }
        }
    }
    return true;
}
Reply


Messages In This Thread
PlayerRequestClass - Quick Question!! :) - by hewittpro - 28.10.2013, 20:22
Re: PlayerRequestClass - Quick Question!! :) - by hewittpro - 28.10.2013, 22:21
Re: PlayerRequestClass - Quick Question!! :) - by PaulDinam - 28.10.2013, 22:31
Re: PlayerRequestClass - Quick Question!! :) - by Patrick - 28.10.2013, 22:43

Forum Jump:


Users browsing this thread: 2 Guest(s)