04.08.2015, 16:11
pawn Код:
CancelSelectTextDraw(playerid);
printf("Setting player class to: %d", gClass[playerid]);
SendClientMessage(playerid, C_GREY, "You have chosen your class and are now spawned.");
TogglePlayerControllable(playerid, 1);
TogglePlayerSpectating(playerid, 0);
StopAudioStreamForPlayer(playerid);
HideClassSelection(playerid);
IsPlayerChoosingClass[playerid] = 0;
SpawnPlayer(playerid);
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
return 1;
}