if(!strcmp(cmdtext,"/menu",true)) { if(PlayerToPoint(20,playerid,376.4686,-67.4387,1001.5078)) { if(PlayerToPoint(20,playerid,376.4686,-67.4387,1001.5078)) { new string[1000]; format(string,sizeof(string),"7$ Chicken Wings \n6$ Nuggets \n7$ Hamburger \n7$ Cheesburger \n5$ Pommes Frittes \n4$ Currywurst \n9$ Hänchen \n12$ Kleine Pizza \n14$ Große Pizza \n3$ Coca Cola \n3$ Sprite \n3$ Fanta "); ShowPlayerDialog(playerid,BSNDialog,DIALOG_STYLE_LIST,"Burger Shot Menü",string,"Bestellen","Abbrechen"); } else { SendClientMessage(playerid,Rot,"Du bist in keinem Fast Food Restaurant."); return 1; } } }
GeldAbnahme/Leben dazugeben:
if(dialogid == BSNDialog) { if(response==0) { return 1; } if(response==1) { if(listitem==0) { new string[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; format(string, sizeof(string), " Kellnerin: %s, danke für deine Bestellung. ", sendername); GivePlayerMoney(playerid, -7); SetPlayerHealth(playerid, bsnhealth + 30.0); return 1; } } if(listitem==1) { new string[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; format(string, sizeof(string), " Kellnerin: %s, danke für deine Bestellung. ", sendername); GivePlayerMoney(playerid, -6); SetPlayerHealth(playerid, bsnhealth + 28.0); return 1; } if(listitem==2) { new string[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; format(string, sizeof(string), " Kellnerin: %s, danke für deine Bestellung. ", sendername); GivePlayerMoney(playerid, -7); SetPlayerHealth(playerid, bsnhealth + 28.0); return 1; }
if(listitem==3) { new string[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; format(string, sizeof(string), " Kellnerin: %s, danke für deine Bestellung. ", sendername); GivePlayerMoney(playerid, -7); SetPlayerHealth(playerid, bsnhealth + 28.0); return 1; }
if(listitem==4) { new string[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; format(string, sizeof(string), " Kellnerin: %s, danke für deine Bestellung. ", sendername); GivePlayerMoney(playerid, -5); SetPlayerHealth(playerid, bsnhealth + 26.0); return 1; }
if(listitem==5) { new string[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; format(string, sizeof(string), " Kellnerin: %s, danke für deine Bestellung. ", sendername); GivePlayerMoney(playerid, -4); SetPlayerHealth(playerid, bsnhealth + 25.0); return 1; }
if(listitem==6) { new string[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; format(string, sizeof(string), " Kellnerin: %s, danke für deine Bestellung. ", sendername); GivePlayerMoney(playerid, -9); SetPlayerHealth(playerid, bsnhealth + 29.0); return 1; }
if(listitem==7) { new string[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; format(string, sizeof(string), " Kellnerin: %s, danke für deine Bestellung. ", sendername); GivePlayerMoney(playerid, -12); SetPlayerHealth(playerid, bsnhealth + 26.0); return 1; } if(listitem==8) { new string[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; format(string, sizeof(string), " Kellnerin: %s, danke für deine Bestellung. ", sendername); GivePlayerMoney(playerid, -14); SetPlayerHealth(playerid, bsnhealth + 29.0); return 1; } if(listitem==9) { new string[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; format(string, sizeof(string), " Kellnerin: %s, danke für deine Bestellung. ", sendername); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER); GivePlayerMoney(playerid, -3); SetPlayerHealth(playerid, bsnhealth + 16.0); return 1; } if(listitem==10) { new string[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; format(string, sizeof(string), " Kellnerin: %s, danke für deine Bestellung. ", sendername); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER); GivePlayerMoney(playerid, -3); SetPlayerHealth(playerid, bsnhealth + 16.0); return 1; } if(listitem==11) { new string[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; format(string, sizeof(string), " Kellnerin: %s, danke für deine Bestellung. ", sendername); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER); GivePlayerMoney(playerid, -3); SetPlayerHealth(playerid, bsnhealth + 16.0); return 1; } }