Jump to content
  • 0

tigara cand fumezi


impulse81

Question

salut . cand dau /smokecigars nu imi da tigara in mana si cand apas click sa o duca la gura..

asta e comanda:

[pawn]if(!strcmp(cmdtext, "/smokecigars", true))

{

    if(IsPlayerConnected(playerid))

    {

GetPlayerName(playerid, sendername, sizeof(sendername));

        if(gPlayerLogged[playerid] == 0)

        {

            SendClientMessage(playerid, COLOR_GREY, "  You need to login first !");

            return 1;

        }

        if(IsSmoking[playerid] == 0)

        {

            if(PlayerInfo[playerid][pLighter] == 0)

            {

                SendClientMessage(playerid, COLOR_GREY, "  Nu ai Bricheta! Intoarcete la un magazin si cumapara-ti! ! ");

                return 1;

            }

            if(PlayerInfo[playerid][pCigarettes] == 0)

            {

                SendClientMessage(playerid, COLOR_GREY, "  Nu ai tigari! ");

                return 1;

            }

            new randsmoke = random(2)+1;

if(randsmoke == 1)

{

    PlayerInfo[playerid][pLighter] -= 1;

    PlayerInfo[playerid][pCigarettes] -= 1;

PlayerInfo[playerid][pDependent] += 1;

    if(PlayerInfo[playerid][pSex] == 1) { format(string, sizeof(string), " %s scoate bricheta si isi aprinde tigara!.", sendername); }

else { format(string, sizeof(string), "* %s takes out her lighter and cigarette and lights it up.", sendername); }

    ProxDetector(30.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_YELLOW,COLOR_RED);

    IsSmoking[playerid] = 60;

                    SendClientMessage(playerid, COLOR_WHITE, "Poti sa o arunci Apasand 'F' or 'Enter' !");

        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);

}

                              else

{

    PlayerInfo[playerid][pLighter] -= 1;

    if(PlayerInfo[playerid][pSex] == 1) { format(string, sizeof(string), "* %s a scos bricheta si a incercat sa aprinda tigara ,dar nu a reusit!.", sendername); }

else { format(string, sizeof(string), "* %s a scos bricheta si a incercat sa aprinda tigara ,dar nu a reusit!.", sendername); }

      ProxDetector(30.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_YELLOW,COLOR_RED);

    return 1;

}

}

else

{

    SendClientMessage(playerid, COLOR_GREY, "  Deja fumezi! ");

    return 1;

}

}

return 1;

}[/pawn]

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.