08.04.2010, 15:22
Easy, use SetPlayerSpecialAction!
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
pawn Code:
if(strcmp("/smoke", cmd, true) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
GivePlayerMoney(playerid, -2);
return 1;
}
I was really bored and people playing my server asks how I get cigs with a command