I have little strange question ?
#3

You can make it like
Код:
PlayerInfo[playerid][pBeer] = 1;
So if he bought the beer, and logged off, he can use (/drinkbeer) to drink it.
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;
	}
Reply


Messages In This Thread
I have little strange question ? Is that possble - by doreto - 07.07.2011, 07:47
Re: I have little strange question ? - by doreto - 07.07.2011, 08:05
Re: I have little strange question ? - by Berky - 07.07.2011, 08:05
Re: I have little strange question ? - by doreto - 07.07.2011, 08:08
Re: I have little strange question ? - by Kyosaur - 07.07.2011, 08:43
Re: I have little strange question ? - by ricardo178 - 07.07.2011, 09:05

Forum Jump:


Users browsing this thread: 1 Guest(s)