01.08.2011, 11:53
Yeah, but now it just selects the first class to play, without class selection...
Код:
public OnPlayerRequestClass(playerid, classid) { if(IsPlayerNPC(playerid)) return 1; if(gPlayerHasCitySelected[playerid]) { ClassSel_SetupCharSelection(playerid); return 1; } else { if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING) { TogglePlayerSpectating(playerid,1); TextDrawShowForPlayer(playerid, txtClassSelHelper); gPlayerCitySelection[playerid] = -1; } } switch(classid) //Gets the current classid { case 0: GameTextForPlayer(playerid,"This is class 0",300,1); case 1: GameTextForPlayer(playerid,"This is class 1",300,1); } return 1; }