07.07.2011, 08:05
You can make it like
So if he bought the beer, and logged off, he can use (/drinkbeer) to drink it.
Like this:
Код:
PlayerInfo[playerid][pBeer] = 1;
Like this:
Код:
if(strcmp(cmd, "/drinkbeer", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pBeer] == 1) { SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER); } else { SendClientMessage(playerid, 0xAFAFAFAA, "You don't have a beer!"); } } return 1; }