if(dialogid==DIALOG_DRIVEIN)
{
if(response==0)
{
SendClientMessage(playerid,ROT,"Du hast den Kaufvorgang abbgebrochen");
}
if(listitem==0)
SetPlayerHealth(playerid,50);
GivePlayerMoney(playerid,-20);
SendClientMessage(playerid,GRÜN,"Guten Appetit.Gute weiterfahrt");
}
if(listitem==1)
{
SetPlayerHealth(playerid,90);
GivePlayerMoney(playerid,-50);
SendClientMessage(playerid,GRÜN,"Guten Appetit.Gute weiterfahrt");
}
if(listitem==2)
{
SetPlayerHealth(playerid,40);
GivePlayerMoney(playerid,-10);
SendClientMessage(playerid,GRÜN,"Guten Appetit.Gute weiterfahrt");
}
if(listitem==3)
{
SetPlayerHealth(playerid,80);
GivePlayerMoney(playerid,-40);
SendClientMessage(playerid,GRÜN,"Guten Appetit.Gute weiterfahrt");
}
if(listitem==4)
{
SetPlayerHealth(playerid,90);
GivePlayerMoney(playerid,-30);
SendClientMessage(playerid,GRÜN,"Guten Appetit.Gute weiterfahrt");
}
}
return 1;
}