Drug and Animation Systems
#2

pawn Код:
if(strcmp(cmdtext, "/td", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(Drugs[playerid] > 1) //or whatever your variable for storing drugs is
            {
                new Float:health;
                GetPlayerHealth(playerid, health);
                SetPlayerHealth(playerid, health + 10.0);
                SendClientMessage(playerid, COLOR_GREY, "  You used 1g of your drugs.");
                Drugs[playerid] -= 1;
               
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "   You dont have any drugs.");
            }
        }//not connected
        return 1;
    }
Reply


Messages In This Thread
Drug and Animation Systems - by viosteaua98 - 25.11.2011, 21:00
Re: Drug and Animation Systems - by Rob_Maate - 25.11.2011, 21:11
Re: Drug and Animation Systems - by viosteaua98 - 25.11.2011, 22:22
Re: Drug and Animation Systems - by Rob_Maate - 25.11.2011, 23:46
Re: Drug and Animation Systems - by Rob_Maate - 25.11.2011, 23:48

Forum Jump:


Users browsing this thread: 1 Guest(s)