[HELP] lighters and cigars
#8

the variable should be PlayerInfo[playerid][Lighter] = 10; at first
and each time he use /smoke do:

pawn Код:
PlayerInfo[playerid][Lighter] --;
and on your command /smoke put:
pawn Код:
if(PlayerInfo[playerid][Lighter] == 0) return SendClientMessage(playerid,-1,"You have to buy a lighter again to smoke more!");
put it at the start of the command after the {
Reply


Messages In This Thread
[HELP] lighters and cigars - by Luca12 - 05.10.2014, 08:56
Re: [HELP] lighters and cigars - by Eth - 05.10.2014, 09:02
Re: [HELP] lighters and cigars - by Luca12 - 05.10.2014, 09:05
Re: [HELP] lighters and cigars - by Stinged - 05.10.2014, 09:06
Re: [HELP] lighters and cigars - by Eth - 05.10.2014, 09:07
Re: [HELP] lighters and cigars - by Luca12 - 05.10.2014, 09:18
Re: [HELP] lighters and cigars - by MacT - 05.10.2014, 10:13
Re: [HELP] lighters and cigars - by Eth - 05.10.2014, 11:36

Forum Jump:


Users browsing this thread: 1 Guest(s)