09.03.2013, 00:48
Example:
Hopefully this works for you.
pawn Код:
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;
}