Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == 107)//Planet Pizza
- {
- if(response)
- {
- new Negocio = PlayerInfo[playerid][pMenuNegocio];
- new sendername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new string[256];
- new Float:health;
- GetPlayerHealth(playerid, health);
- if(listitem == 0)
- {
- if(NegocioInfo[Negocio][nProd] >= 4)
- {
- NegocioInfo[Negocio][nProd] = NegocioInfo[Negocio][nProd]-4;
- NegocioInfo[Negocio][nCajaFuerte] += 20;
- SetPlayerHealth(playerid, health + 75);
- SendClientMessage(playerid, COLOR_GRAD2, "Has comprado una Pizza de Jamón y Queso por 20$");
- Dinero(playerid, -20);
- format(string, sizeof(string), "* %s coge su su bandeja de la encimera.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Sin existencias");
- }
- }
- if(listitem == 1)
- {
- if(NegocioInfo[Negocio][nProd] >= 4)
- {
- NegocioInfo[Negocio][nProd] = NegocioInfo[Negocio][nProd]-4;
- NegocioInfo[Negocio][nCajaFuerte] += 20;
- SetPlayerHealth(playerid, health + 75);
- SendClientMessage(playerid, COLOR_GRAD2, "Has comprado una Pizza de 4 Quesos por 20$");
- Dinero(playerid, -20);
- format(string, sizeof(string), "* %s coge su su bandeja de la encimera.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Sin existencias");
- }
- }
- if(listitem == 2)
- {
- if(NegocioInfo[Negocio][nProd] >= 4)
- {
- NegocioInfo[Negocio][nProd] = NegocioInfo[Negocio][nProd]-4;
- NegocioInfo[Negocio][nCajaFuerte] += 20;
- SetPlayerHealth(playerid, health + 75);
- SendClientMessage(playerid, COLOR_GRAD2, "Has comprado una Pizza Barbacoa por 20$");
- Dinero(playerid, -20);
- format(string, sizeof(string), "* %s coge su su bandeja de la encimera.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Sin existencias");
- }
- }
- if(listitem == 3)
- {
- if(NegocioInfo[Negocio][nProd] >= 4)
- {
- NegocioInfo[Negocio][nProd] = NegocioInfo[Negocio][nProd]-4;
- NegocioInfo[Negocio][nCajaFuerte] += 20;
- SetPlayerHealth(playerid, health + 75);
- SendClientMessage(playerid, COLOR_GRAD2, "Has comprado una Pizza de Mozzarella por 20$");
- Dinero(playerid, -20);
- format(string, sizeof(string), "* %s coge su su bandeja de la encimera.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Sin existencias");
- }
- }
- SetTimerEx("VidaBien", 1000, 0, "d", playerid);
- GuardarNegocio(Negocio);
- }
- }
Add Comment
Please, Sign In to add comment