23.09.2011, 21:59
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == loja1)
{
ShowPlayerDialog(playerid, loja1, 2, "Alimentos", "Pizza R$12,00\nBolacha recheada R$3,00\nSucrilhos R$5,00\nBarra de Chocolate R$10,00\nPгo frances R$1,00", "Comprar", "Cancelar");
return 1;
}
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == loja1)
{
if(pizza)
{
SetPlayerHealth(playerid, +16);
GivePlayerMoney(playerid, -12);
SendClientMessage(playerid, AZUL, "Vocк comeu uma pizza");
}
return 1;
}
}