Server sends me back to class selection
#1

I'm making a custom class selection. Server should spawn me after I click a textdraw. But it sends me back to class selection.
pawn Code:
else if(playertextid == tID[playerid][9])
    {
        ClearTD(playerid); //removes all textdraws
        CancelSelectTextDraw(playerid);
        TogglePlayerSpectating(playerid,0); //I set it to 1 under OnPlayerConnect and setting it back to 0 after they've done choosing a skin.
        SetPlayerSkin(playerid, (Player[playerid][Team] == CTerror) ? 285 : 28); //Sets player's skin
        Player[playerid][Skin] = GetPlayerSkin(playerid);
        SpawnPlayer(playerid); //Spawns them
        SetCameraBehindPlayer(playerid);
    }
Reply


Messages In This Thread
Server sends me back to class selection - by newbienoob - 23.08.2013, 13:54
Re: Server sends me back to class selection - by Cypress - 23.08.2013, 14:24
AW: Server sends me back to class selection - by Nero_3D - 23.08.2013, 15:04
Re: Server sends me back to class selection - by Vanter - 23.08.2013, 16:20
Re: Server sends me back to class selection - by newbienoob - 23.08.2013, 16:54

Forum Jump:


Users browsing this thread: 1 Guest(s)