21.01.2017, 17:17
PHP код:
case DIALOG_HOTDOG:
{
if(response)
{
new Float:health;
GetPlayerHealth(playerid, health)
if(health >70)
{
SetPlayerHealth(playerid, 100);
}
ac_GivePlayerMoney(playerid, -100);
SendClientMessage(playerid, HBLAU, "Du hast dir von Phillip fьr 100$ ein Hotdog gekauft.");
SetPlayerHealth(playerid, GetPlayerHealth(playerid)+30);
}
else
{
SendClientMessage(playerid, GRAU, "Du hast dir kein Hotdog gekauft.");
}
}