05.10.2014, 11:36
the variable should be PlayerInfo[playerid][Lighter] = 10; at first
and each time he use /smoke do:
and on your command /smoke put:
put it at the start of the command after the {
and each time he use /smoke do:
pawn Код:
PlayerInfo[playerid][Lighter] --;
pawn Код:
if(PlayerInfo[playerid][Lighter] == 0) return SendClientMessage(playerid,-1,"You have to buy a lighter again to smoke more!");