Pq da pra dar /profissao fora da agencia? -
aldair8 - 26.11.2012
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
Re: Pq da pra dar /profissao fora da agencia? -
Vinicius_TroLL - 26.11.2012
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;
}
}
Respuesta: Re: Pq da pra dar /profissao fora da agencia? -
aldair8 - 26.11.2012
Quote:
Originally Posted by Vinicius_TroLL
Usa PlayerToPoint
|
usar onde?
Re: Pq da pra dar /profissao fora da agencia? -
Vinicius_TroLL - 26.11.2012
Editei la em cima, tenta
Re: Pq da pra dar /profissao fora da agencia? -
Schocc - 26.11.2012
teste trocar a funзгo
PlayerToPoint por
IsPlayerInRangeOfPoint
Re: Pq da pra dar /profissao fora da agencia? -
FenixBorn - 26.11.2012
se ele tiver PlayerToPoint aн no GM nao й necessario usar o IsPlayerIn....
Respuesta: Re: Pq da pra dar /profissao fora da agencia? -
aldair8 - 26.11.2012
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
Re: Pq da pra dar /profissao fora da agencia? -
Vinicius_TroLL - 27.11.2012
Tenho sim,
m_vinicius_sp@live.com e skype: Style_Joker
Respuesta: Re: Pq da pra dar /profissao fora da agencia? -
aldair8 - 27.11.2012
Quote:
Originally Posted by Vinicius_TroLL
|
me ajuda?
https://sampforum.blast.hk/showthread.php?tid=395684