Class selection not disappearing
#1

I set my player TogglePlayerSpecating(playerid, 1); when he connects. This he chooses his class with textdraw, and disable the spectating:

Код:
printf("Setting player class to: %d", gClass[playerid]);
			CancelSelectTextDraw(playerid);
			
			SendClientMessage(playerid, C_GREY, "Class chosen.");
			TogglePlayerControllable(playerid, 1);
			TogglePlayerSpectating(playerid, 0);
			StopAudioStreamForPlayer(playerid);
			HideClassSelection(playerid);
			IsPlayerChoosingClass[playerid] = 0;
Now he goes to OnPlayerRequestClass.

Код:
public OnPlayerRequestClass(playerid, classid)
{
	printf("Player requesting class.. team: %d, class: %d", gTeam[playerid], gClass[playerid]);
	SpawnPlayer(playerid);
  	return 1;
}
The issue is.. there still are the arrows and 'Spawn' button. I dont want the default spawn button and arrows.. I want him straight to spawn but it isn't happening.
Reply


Messages In This Thread
Class selection not disappearing - by sjames - 04.08.2015, 15:34
Re: Class selection not disappearing - by Fancy - 04.08.2015, 15:49
Re: Class selection not disappearing - by sjames - 04.08.2015, 16:11
Re: Class selection not disappearing - by sjames - 04.08.2015, 16:48

Forum Jump:


Users browsing this thread: 1 Guest(s)