i first want to choose the city then the job ... like first choose British .. then choose medic or general or soldier....
i dont know how to do it .. loook i got this one playerrequestclass
Код:
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;
}
}
gPlayerClass[playerid] = classid;
switch (classid) {
case 0:
{
GameTextForPlayer(playerid, "~w~General", 500, 6);
{SetPlayerPos(playerid,354.4405,2030.4860,23.8750);
SetPlayerFacingAngle(playerid, 357.3909);
SetPlayerCameraPos(playerid, 354.4252,2032.4153,24.0223);
SetPlayerCameraLookAt(playerid, 354.4405,2030.4860,23.8750);
gTeam[playerid] = BRITISH_GENERAL;
CreateExplosion(354.4405,2030.4860,23.8750, 12, 2); }
}
case 1:
{
GameTextForPlayer(playerid, "~w~Soldier", 500, 6);
{SetPlayerPos(playerid,354.4405,2030.4860,23.8750);
SetPlayerFacingAngle(playerid, 357.3909);
SetPlayerCameraPos(playerid, 354.4252,2032.4153,24.0223);
SetPlayerCameraLookAt(playerid, 354.4405,2030.4860,23.8750);
gTeam[playerid] = BRITISH_SOLDIER;
CreateExplosion(354.4405,2030.4860,23.8750, 12, 2);}
}
case 2:
{
GameTextForPlayer(playerid, "~w~British Army Soldier", 500, 6);
{SetPlayerPos(playerid,354.4405,2030.4860,23.8750);
SetPlayerFacingAngle(playerid, 357.3909);
SetPlayerCameraPos(playerid, 354.4252,2032.4153,24.0223);
SetPlayerCameraLookAt(playerid, 354.4405,2030.4860,23.8750);
gTeam[playerid] = BRITISH_MEDIC;
CreateExplosion(354.4405,2030.4860,23.8750, 12, 2); }
}
case 3:
{
GameTextForPlayer(playerid, "~b~general", 500, 6);
{SetPlayerPos(playerid, 358.4248,2434.5625,17.0588);
SetPlayerFacingAngle(playerid, 298.3950);
SetPlayerCameraPos(playerid, 361.6220,2436.0774,16.7443);
SetPlayerCameraLookAt(playerid, 358.4248,2434.5625,17.0588);
gTeam[playerid] = FRANCE_GENERAL;
CreateExplosion(358.4248,2434.5625,17.0588, 12, 2); }
}
case 4:
{
GameTextForPlayer(playerid, "~b~Soldier", 500, 6);
{SetPlayerPos(playerid, 358.4248,2434.5625,17.0588);
SetPlayerFacingAngle(playerid, 298.3950);
SetPlayerCameraPos(playerid, 361.6220,2436.0774,16.7443);
SetPlayerCameraLookAt(playerid, 358.4248,2434.5625,17.0588);
gTeam[playerid] = FRANCE_SOLDIER;
CreateExplosion(358.4248,2434.5625,17.0588, 12, 2); }
}
case 5:
{
GameTextForPlayer(playerid, "~b~medic", 500, 6);
{SetPlayerPos(playerid, 358.4248,2434.5625,17.0588);
SetPlayerFacingAngle(playerid, 298.3950);
SetPlayerCameraPos(playerid, 361.6220,2436.0774,16.7443);
SetPlayerCameraLookAt(playerid, 358.4248,2434.5625,17.0588);
gTeam[playerid] = FRANCE_MEDIC;
CreateExplosion(358.4248,2434.5625,17.0588, 12, 2); }
}
}
return 1;
}