18.02.2019, 00:37
PHP код:
CMD:vercasa(playerid, params[])
{
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_INPUT, "Casas", "Digite o id da casa", "Visualizar", "Cancelar");
return 1;
}
PHP код:
if(dialogid == 3)
{
escolha[playerid] = strval(inputtext);
if(!response)
{
SendClientMessage(playerid, -1, "Vocк nгo quer ver");
return 1;
}
if(!strval(inputtext))
{
SendClientMessage(playerid, -1, "Digite somente numeros!");
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_INPUT, "Casas", "Digite o id da casa", "Visualizar", "Cancelar");
return 1;
}
if(escolha[playerid] == 1)
{
SetPlayerCameraPos(playerid, 2003.3597, -1720.6790, 29.8490);
SetPlayerCameraLookAt(playerid, 2002.3553, -1720.6615, 29.2091);
SendClientMessage(playerid, -1, "Casas 01!");
return 1;
}
if(escolha[playerid] == 2)
{
SetPlayerCameraPos(playerid, 2000.9430, -1682.8325, 25.5212);
SetPlayerCameraLookAt(playerid, 1999.9388, -1682.8167, 25.0712);
SendClientMessage(playerid, -1, "Casas 02!");
return 1;
}
SendClientMessage(playerid, -1, "Casas disponiveis!");
return 1;
}