27.08.2011, 08:04
PHP код:
PlayerInfo[playerid][pBeer] = 0; //if player doesn't have any beer. Put this OnPlayerConnect callback
//////
//once he buys beer
PlayerInfo[playerid][pBeer]++;
///////
// once he uses command /beer
PlayerInfo[playerid][pBeer]--;