18.12.2013, 21:21
nao sei o porque da keypad nгo abrir, fiz tudo certinho e pa
pawn Код:
if (strcmp("/banco", cmdtext, true) == 0)
{
new otrastring[6];
if(PlayerToPoint(1.5,playerid,2224.1484,-1141.8772,1025.7969) || PlayerToPoint(1.0,playerid,1929.5409,-1785.1664,13.5469) || PlayerToPoint(1.0,playerid,2232.2886,-1162.6107,25.8906) || PlayerToPoint(1.0,playerid,1550.4796,-1669.7039,13.5624) || PlayerToPoint(1.5,playerid,957.4803,-48.7381,1001.1172)
|| PlayerToPoint(1.5,playerid,229.6725,153.8311,1003.0234) || PlayerToPoint(1.5,playerid,241.0845,115.2740,1003.2188) || PlayerToPoint(1.5,playerid,321.4753,305.5962,999.1484) || PlayerToPoint(1.5,playerid,-1347.6376,499.9476,11.1953) || PlayerToPoint(1.5, playerid,2308.7908,-13.2499,26.7422) || PlayerToPoint(1.5,playerid,1468.6473,-1767.3595,18.7958))
{
if(PlayerInfo[playerid][pSenhaBanco] == 0)
{
SendClientMessage(playerid, COLOR_RED, "Vocк nгo tem uma senha para acessar sua conta, crie uma agora.");
ShowPlayerDialog(playerid, DCaixaPin, DIALOG_STYLE_PASSWORD, "Sua senha do banco", "Digite uma senha de atй 4 caracteres.\nUse somente nъmeros\n\nEssa senha serб usada para todas as operaзхes bancбrias!", \
"Cadastrar", "Fechar");
}
else
{
if(LiberarBanco[playerid] == 1)
{
ShowPlayerDialog(playerid,1125,DIALOG_STYLE_LIST,"Banco","Depositar\nSacar\nSaldo\nTransferir","Ok","Cancelar");
return 1;
}
if(LiberarBanco[playerid] == 0)
{
format(otrastring, 5, "%i", PlayerInfo[playerid][pSenhaBanco]);
ShowPlayerKeypad(playerid, 3772, otrastring);
GameTextForPlayer(playerid, "Digite sua senha do banco", 2000, 4);
}
}
}
return 1;
}