SA-MP Forums Archive
[HELP] GameTextForPlayer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] GameTextForPlayer (/showthread.php?tid=510736)



[HELP] GameTextForPlayer - monster010 - 02.05.2014

Why don't dispear this?
PHOTO

My Script:

pawn Код:
if(strcmp(cmd, "/eat", true) == 0)
    {
        new Float:health;
        GetPlayerHealth(playerid,health);
        if (health < 100.0)
        {
            if(PlayerToPoint(2.0,playerid,375.39999389648,-67.400001525879,1001.5))
            {
                ShowPlayerDialog(playerid, 26, DIALOG_STYLE_LIST, "BURGER SHOT", "Cola ({00FF40}5$)\nFanta ({00FF40}5$)\nCartofi Prajiti ({00FF40}10$)\nHamburger ({00FF40}15$)\nDublu-Hamburger ({00FF40}15$)", "Buy", "Leave");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "* You are really healt *");
        }
        return 1;
    }
pawn Код:
case 1:
                {
                    if(GetPlayerMoney(playerid) < 5) return SendClientMessage(playerid, 0xFFFFFF, "You don't have 5$.");
                    GivePlayerMoney(playerid, -5);
                    SetPlayerHealth(playerid, 100);
                    GameTextForPlayer(playerid, "~r~-5~g~$", 5000, 2);
                    SendClientMessage(playerid, COLOR_WHITE, "You buy a {00FF40}Fanta {FFFFFF}with {00FF40}5$ {FFFFFF}and {FF0000}100 health");
                }