[Tuts4Nubs]I wants a cig in ma hand when I writes /smoke!!!
#1

Easy, use SetPlayerSpecialAction!

pawn Code:
if(strcmp("/smoke", cmd, true) == 0)
    {
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
        GivePlayerMoney(playerid, -2);
        return 1;
    }
Tada!!! When you write /smoke it takes 2 money and gives a cig, comment ( // ) GivePlayerMoney part if you want cigs to be free or just delete it, also search the wiki for more info about SetPlayerSpecialAction

I was really bored and people playing my server asks how I get cigs with a command
Reply


Messages In This Thread
[Tuts4Nubs]I wants a cig in ma hand when I writes /smoke!!! - by Thrarod - 08.04.2010, 15:22
Re: [Tuts4Nubs]I wants a cig in ma hand when I writes /smoke!!! - by Steven82 - 08.04.2010, 15:31
Re: [Tuts4Nubs]I wants a cig in ma hand when I writes /smoke!!! - by Thrarod - 08.04.2010, 15:41
Re: [Tuts4Nubs]I wants a cig in ma hand when I writes /smoke!!! - by Steven82 - 08.04.2010, 15:44
Re: [Tuts4Nubs]I wants a cig in ma hand when I writes /smoke!!! - by Thrarod - 08.04.2010, 15:45

Forum Jump:


Users browsing this thread: 1 Guest(s)