Dialog after class select
#2

it's like that
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1963.0435, 1342.9009, 16.6642);
    SetPlayerCameraLookAt(playerid, 1962.0388, 1342.8906, 16.5992);
    switch(classid)
    {
     case 0:
        {
        new string[18];
        format(string, sizeof(string), "~r~United Kingdom");
        SetPlayerTeam(playerid, TEAM_UK);
        GameTextForPlayer(playerid, string, 3000, 4);
        }
     case 1:
        {
        new string[18];
        format(string, sizeof(string), "~g~America");
        GameTextForPlayer(playerid, string, 3000, 4);
        }
     case 2:
        {
        new string[18];
        format(string, sizeof(string), "~r~Russia");
        SetPlayerTeam(playerid, TEAM_RUSSIA);
        GameTextForPlayer(playerid, string, 3000, 4);
        }
     case 3:
        {
        new string[18];
        format(string, sizeof(string), "~r~Japan");
        SetPlayerTeam(playerid, TEAM_JAPAN);
        GameTextForPlayer(playerid, string, 3000, 4);
        }
     case 4:
        {
        new string[18];
        format(string, sizeof(string), "~r~Germany");
        SetPlayerTeam(playerid, TEAM_GERMANY);
        GameTextForPlayer(playerid, string, 3000, 4);
        }
    }
        ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Sniper\nSoldier\nPilot\nEngineer", "Choose","");
    return 1;
}
try that
Reply


Messages In This Thread
Dialog after class select - by ThaCrypte - 05.08.2013, 09:38
Re: Dialog after class select - by Vanter - 05.08.2013, 10:44
Re: Dialog after class select - by ThaCrypte - 05.08.2013, 11:08
Re: Dialog after class select - by ThaCrypte - 06.08.2013, 00:11
Re: Dialog after class select - by Naruto_Emilio - 06.08.2013, 05:31
Re: Dialog after class select - by ThaCrypte - 06.08.2013, 06:05
Re: Dialog after class select - by Naruto_Emilio - 06.08.2013, 06:12
Re: Dialog after class select - by ThaCrypte - 06.08.2013, 06:29

Forum Jump:


Users browsing this thread: 1 Guest(s)