[Pedido] Selecionar Char pela callback RequestClass
#5

Olha, eu atй entendi, ai eu fiz assim no meu

pawn Код:
public OnGameModeInit()
{
    SetGameModeText("Blank Script");
    AddPlayerClass(280, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(107, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(104, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(109, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(115, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 2141.9072,-1038.2037,70.9141);
    SetPlayerCameraPos(playerid, 2145.6262,-1036.9430,70.9141);
    SetPlayerCameraLookAt(playerid, 2141.9072,-1038.2037,70.9141);
    new string[128];
    PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
    if (classid == 1)
    {
            format(string, sizeof(string), "~b~Governo");
            GameTextForPlayer(playerid,string,3500,6);

    }
    else if (classid == 2)
    {
            format(string, sizeof(string), "~g~~h~Groove Street");
            GameTextForPlayer(playerid,string,3500,6);

    }
    else if (classid == 3)
    {
            format(string, sizeof(string), "~p~Front Yard Ballas");
            GameTextForPlayer(playerid,string,3500,6);

    }
    else if (classid == 4)
    {
            format(string, sizeof(string), "~y~~h~Los Santos Vagos");
            GameTextForPlayer(playerid,string,3500,6);

    }
    else if (classid == 5)
    {
            format(string, sizeof(string), "~g~~h~Varrios Los Aztecas");
            GameTextForPlayer(playerid,string,3500,6);

    }
    return 1;
}
E A Skin 280 que й para ser do grupo "GOVERNO", ela nгo estб definida para nenhum grupo, por que ?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)