SA-MP Forums Archive
Cookies Help! - 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: Cookies Help! (/showthread.php?tid=517043)



Cookies Help! - TazmaNiax - 03.06.2014

- Fixed -


Re: Cookies Help! - rickisme - 03.06.2014

pawn Код:
if(dialogid == DIALOG_COOKIES) // In other commands show the dialogs
    {
        if(response)
        {
            switch(listitem)
            {
                case 0: // health
                {
                    if(pInfo[playerid][Cookies] < 10) return SCM(playerid, COLOR_RED,"g cukup");
                    SetPlayerHealth(playerid, 100.0);
                                pInfo[playerid][Cookies] -= 10;
                }
                case 1: // armour
                {
                    if(pInfo[playerid][Cookies] < 20) return SCM(playerid, COLOR_RED,"g cukup");
                    SetPlayerArmour(playerid, 100.0);
                                        pInfo[playerid][Cookies] -= 20;
                }
            }
        }
    }



Re: Cookies Help! - TazmaNiax - 03.06.2014

thanks its working