08.03.2013, 18:17
How to i get rid of what I circled in RED?
public OnPlayerConnect(playerid) { ViewingTextDraws[playerid] = 1; } public OnPlayerRequestSpawn(playerid) { if(ViewingTextDraws[playerid] == 1) return 0; return 1; } |
new HasChosenClass[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
HasChosenClass[playerid] = 0;
TogglePlayerSpectating(playerid, 1);
//Do your little cutscene thing here
//You might have a SetTimerEx here for when the cutscene ends
return 1;
}
//When cutscene ends...
TogglePlayerSpectating(playerid, 0); //OnPlayerSpawn is called.
return 1;
}
public OnPlayerSpawn(playerid)
{
if(HasChosenClass[playerid] == 0)
{
HasChosenClass[playerid] = 1;
ForceClassSelection(playerid);
TogglePlayerSpectating(playerid, true);
TogglePlayerSpectating(playerid, false);
}
return 1;
}