[Ajuda] Pq da pra dar /profissao fora da agencia?
#1

pawn Код:
Create3DTextLabel("/profissoes",Branco,1490.7410,1305.8712,1093.2964,60.0,0);
Eu escrevo /profissoes em qualquer lugar, e da pra pegar a profissao, como faзo pra colocar sу na localizaзao q eu quero?

pawn Код:
if (strcmp("/profissoes", cmdtext, true, 10) == 0)
    {
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    format(file, sizeof(file), PASTA_CONTAS, aname);
    if(dini_Int(file, "Carteira") == 0){
    SendClientMessage(playerid, Vermelho, "(ERRO) Exigimos uma carteira de trabalho, vai ate um DP Departamento Policial!");
    return 1;
    }
    if(PlayerToPoint(3.0, playerid, 1490.7410,1305.8712,1093.2964))
    SendClientMessage(playerid, 0x6500CAAA, "~~~~~~~~~~~~~~~~~~~~~~~ Profissхes ~~~~~~~~~~~~~~~~~~~~~~~");
    format(string, sizeof(string), "» Bem vindo(a) %s, em nossa central de profissхes" , aname);
    SendClientMessage(playerid, 0xFFFFFFFF, string);
    SendClientMessage(playerid, 0xFFFFFFFF, "» Selecione uma profissгo e aguarde, seu curriculum serб analisado!");
    SendClientMessage(playerid, 0x6500CAAA, "~~~~~~~~~~~~~~~~~~~~~~~ Profissхes ~~~~~~~~~~~~~~~~~~~~~~~");
    ShowPlayerDialog(playerid,menuprof, DIALOG_STYLE_LIST, "Agкncia de Empregos", "Honestas\nHonestas1\nHonestas2\nDesonestas\nPublicos", "OK", "Voltar");
    return 1;
    }
Eu quero q de pra escrever /profissoes e aparescer o menu das profissoes nessa localizaзao abaixo

pawn Код:
AddPlayerClass(18,1490.8436,1305.8040,1093.2964,136.9100,0,0,0,0,0,0); // checkprofs
Reply
#2

Usa PlayerToPoint

Tente amigo
pawn Код:
if (strcmp("/profissoes", cmdtext, true, 10) == 0)
{
    if(PlayerToPoint(1,playerid,1490.8436,1305.8040,1093.2964))
    {
        new aname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
        format(file, sizeof(file), PASTA_CONTAS, aname);
        if(dini_Int(file, "Carteira") == 0){
        SendClientMessage(playerid, Vermelho, "(ERRO) Exigimos uma carteira de trabalho, vai ate um DP Departamento Policial!");
        return 1;
        }
        if(PlayerToPoint(3.0, playerid, 1490.7410,1305.8712,1093.2964))
        SendClientMessage(playerid, 0x6500CAAA, "~~~~~~~~~~~~~~~~~~~~~~~ Profissхes ~~~~~~~~~~~~~~~~~~~~~~~");
        format(string, sizeof(string), "» Bem vindo(a) %s, em nossa central de profissхes" , aname);
        SendClientMessage(playerid, 0xFFFFFFFF, string);
        SendClientMessage(playerid, 0xFFFFFFFF, "» Selecione uma profissгo e aguarde, seu curriculum serб analisado!");
        SendClientMessage(playerid, 0x6500CAAA, "~~~~~~~~~~~~~~~~~~~~~~~ Profissхes ~~~~~~~~~~~~~~~~~~~~~~~");
        ShowPlayerDialog(playerid,menuprof, DIALOG_STYLE_LIST, "Agкncia de Empregos", "Honestas\nHonestas1\nHonestas2\nDesonestas\nPublicos", "OK", "Voltar");
        return 1;
    }
}
Reply
#3

Quote:
Originally Posted by Vinicius_TroLL
Посмотреть сообщение
Usa PlayerToPoint
usar onde?
Reply
#4

Editei la em cima, tenta
Reply
#5

teste trocar a funзгo PlayerToPoint por IsPlayerInRangeOfPoint
Reply
#6

se ele tiver PlayerToPoint aн no GM nao й necessario usar o IsPlayerIn....
Reply
#7

Quote:
Originally Posted by Vinicius_TroLL
Посмотреть сообщение
Usa PlayerToPoint

Tente amigo
pawn Код:
if (strcmp("/profissoes", cmdtext, true, 10) == 0)
{
    if(PlayerToPoint(1,playerid,1490.8436,1305.8040,1093.2964))
    {
        new aname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
        format(file, sizeof(file), PASTA_CONTAS, aname);
        if(dini_Int(file, "Carteira") == 0){
        SendClientMessage(playerid, Vermelho, "(ERRO) Exigimos uma carteira de trabalho, vai ate um DP Departamento Policial!");
        return 1;
        }
        if(PlayerToPoint(3.0, playerid, 1490.7410,1305.8712,1093.2964))
        SendClientMessage(playerid, 0x6500CAAA, "~~~~~~~~~~~~~~~~~~~~~~~ Profissхes ~~~~~~~~~~~~~~~~~~~~~~~");
        format(string, sizeof(string), "» Bem vindo(a) %s, em nossa central de profissхes" , aname);
        SendClientMessage(playerid, 0xFFFFFFFF, string);
        SendClientMessage(playerid, 0xFFFFFFFF, "» Selecione uma profissгo e aguarde, seu curriculum serб analisado!");
        SendClientMessage(playerid, 0x6500CAAA, "~~~~~~~~~~~~~~~~~~~~~~~ Profissхes ~~~~~~~~~~~~~~~~~~~~~~~");
        ShowPlayerDialog(playerid,menuprof, DIALOG_STYLE_LIST, "Agкncia de Empregos", "Honestas\nHonestas1\nHonestas2\nDesonestas\nPublicos", "OK", "Voltar");
        return 1;
    }
}
Vlw cara deu certo +REP , tem msn pra me ajudar em +1 coisa? vale +rep
Reply
#8

Tenho sim, m_vinicius_sp@live.com e skype: Style_Joker
Reply
#9

Quote:
Originally Posted by Vinicius_TroLL
Посмотреть сообщение
Tenho sim, m_vinicius_sp@live.com e skype: Style_Joker
me ajuda?
https://sampforum.blast.hk/showthread.php?tid=395684
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)