if(dialogid == driveinmenu) // Name des Menüs, das wir als ID 0 definiert haben
{
if(response)
{
if(listitem == 0) // Chickenburger
{
GetPlayerHealth(playerid, PlayerHealth);
SendClientMessage(playerid, COLOR_WHITE,"Guten Appetit ");
GivePlayerMoney(playerid, -5);
if (Health <= 94.9)
SetPlayerHealth(playerid, PlayerHealth+5);
}
if(listitem == 1) // Chickennuggets
{
GetPlayerHealth(playerid, PlayerHealth);
SendClientMessage(playerid, COLOR_WHITE,"Guten Appetit ");
GivePlayerMoney(playerid, -10);
if (Health <= 89.9)
SetPlayerHealth(playerid, PlayerHealth+10);
}
if(listitem == 2) // Hamburger
{
GetPlayerHealth(playerid, PlayerHealth);
SendClientMessage(playerid, COLOR_WHITE,"Guten Appetit ");
GivePlayerMoney(playerid, -15);
if (Health <= 84.9)
SetPlayerHealth(playerid, PlayerHealth+15);
}
if(listitem == 3) // Bigmac
{
GetPlayerHealth(playerid, PlayerHealth);
SendClientMessage(playerid, COLOR_WHITE,"Guten Appetit ");
GivePlayerMoney(playerid, -20);
if (Health <= 79.9)
SetPlayerHealth(playerid, PlayerHealth+20);
}
teste es mal so xD Du hast wieder nirgendwo GetPlayerHealth(playerid, PlayerHealth);
MFG, Rob