27.08.2011, 07:49
i was wonder how to make player to buy beer and to save to my enum pInfo-pBeer i make /beer cmd but i dont know to make make /buybeer i try few ways but dont set pBeer=1 and i was wonther how i can stack many beers at one like 6 beers at ones not only one so here my /beeer cmd
PHP код:
CMD:beer(playerid, params[])
{
if(PlayerInfo[playerid][pBeer] >= 1)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);
}
else
{
SendClientMessage(playerid,-1,"You don't have beer");
}
return true;
}