[Include] Basic Team
#3

I find this utterly pointless lol? Just make a variable and reset it on OnPlayerDisconnect

pawn Код:
stock BTSpawn(playerid)
{
    if(gTeam[playerid] == TEAM_INVALID)
    {
        SetPlayerHealth(playerid,0);
        ForceClassSelection(playerid);
        GameTextForPlayer(playerid,"~w~Please select an team",3000,4);
    }

    if(gTeam[playerid] == TEAM_SPEC)
    {
        new specrandom = random(MAX_PLAYERS);
        TogglePlayerSpectating(playerid, 1);
        PlayerSpectatePlayer(playerid,specrandom);
        return 1;
    }
    return 1;
}
You'd probably already know what's wrong with that code (especially the TEAM_SPEC)

HOOK YOUR CALLBACKS
Reply


Messages In This Thread
Basic Team - by Kitten - 12.04.2012, 03:42
Re: Basic Team - by SublimESmokeR420 - 12.04.2012, 04:24
Re: Basic Team - by Lorenc_ - 12.04.2012, 04:28
Re: Basic Team - by BigETI - 12.04.2012, 09:32
Re : Basic Team - by Naruto_Emilio - 12.04.2012, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)