Why does /smokeweed work when got no weed?
#3

pawn Код:
CMD:smokeweed(playerid, params[])
{
    if(!GetPlayerWeed(playerid)) return SendClientMessage(playerid, GREY, "You don't have any weed left!");
    {
        new Float:health; GetPlayerHealth(playerid, health);
        if(health > 75) return SendClientMessage(playerid, GREY, "You cannot smoke weed if your health is above 75!");
        {
            new string[128];
            ApplyAnimation(playerid, "JST_BUISNESS", "smoke_01", 4.1, 1, 1, 1, 0, 1, 1);
            SetPlayerHealth(playerid, health+25);
            format(string, sizeof(string), "%s takes out a joint and smokes some weed.", GetOOCName(playerid));
            SendNearByMessage(playerid, -1, string, 4);
        }
    }
    return 1;
}
should work
Reply


Messages In This Thread
Why does /smokeweed work when got no weed? - by Josh_Main - 29.09.2014, 16:48
Re: Why does /smokeweed work when got no weed? - by DavidBilla - 29.09.2014, 17:14
Re: Why does /smokeweed work when got no weed? - by Kyance - 29.09.2014, 17:31
Re: Why does /smokeweed work when got no weed? - by Josh_Main - 30.09.2014, 02:31
Re: Why does /smokeweed work when got no weed? - by Josh_Main - 30.09.2014, 02:35
Re: Why does /smokeweed work when got no weed? - by [CG]Milito - 30.09.2014, 03:23
Re: Why does /smokeweed work when got no weed? - by Josh_Main - 01.10.2014, 05:57
Re: Why does /smokeweed work when got no weed? - by Stinged - 01.10.2014, 06:05

Forum Jump:


Users browsing this thread: 1 Guest(s)