Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == 108)//Donut
- {
- 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)
- {
- NegocioInfo[Negocio][nCajaFuerte] += 10;
- SetPlayerHealth(playerid, health + 50);
- SendClientMessage(playerid, COLOR_GRAD2, "Has comprado un Donut normal por 10$");
- Dinero(playerid, -10);
- 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;
- }
- if(listitem == 1)
- {
- NegocioInfo[Negocio][nCajaFuerte] += 10;
- SetPlayerHealth(playerid, health + 50);
- SendClientMessage(playerid, COLOR_GRAD2, "Has comprado un Donut de chocolate por 10$");
- Dinero(playerid, -10);
- 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;
- }
- if(listitem == 2)
- {
- NegocioInfo[Negocio][nCajaFuerte] += 10;
- SetPlayerHealth(playerid, health + 50);
- SendClientMessage(playerid, COLOR_GRAD2, "Has comprado un Donut de Vainilla por 10$");
- Dinero(playerid, -10);
- 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;
- }
- if(listitem == 3)
- {
- NegocioInfo[Negocio][nCajaFuerte] += 10;
- SetPlayerHealth(playerid, health + 50);
- SendClientMessage(playerid, COLOR_GRAD2, "Has comprado una Napolitana por 10$");
- Dinero(playerid, -10);
- 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;
- }
- SetTimerEx("VidaBien", 1000, 0, "d", playerid);
- GuardarNegocio(Negocio);
- }
- }
Add Comment
Please, Sign In to add comment