Character selection text
#5

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;
}
Reply


Messages In This Thread
Character selection text - by Superthijs - 01.08.2011, 09:50
Re: Character selection text - by alpha500delta - 01.08.2011, 10:12
Re: Character selection text - by Superthijs - 01.08.2011, 11:11
Re: Character selection text - by alpha500delta - 01.08.2011, 11:31
Re: Character selection text - by Superthijs - 01.08.2011, 11:53

Forum Jump:


Users browsing this thread: 1 Guest(s)