12.04.2012, 04:28
I find this utterly pointless lol? Just make a variable and reset it on OnPlayerDisconnect
You'd probably already know what's wrong with that code (especially the TEAM_SPEC)
HOOK YOUR CALLBACKS
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;
}
HOOK YOUR CALLBACKS

