04.08.2015, 15:34
I set my player TogglePlayerSpecating(playerid, 1); when he connects. This he chooses his class with textdraw, and disable the spectating:
Now he goes to OnPlayerRequestClass.
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.
Код:
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;
Код:
public OnPlayerRequestClass(playerid, classid)
{
printf("Player requesting class.. team: %d, class: %d", gTeam[playerid], gClass[playerid]);
SpawnPlayer(playerid);
return 1;
}

