Posts: 1,018
Threads: 320
Joined: Jul 2010
Hello. Is it possible to make when player buy one lighter and 10 cigars then he can use that one lighter until he smoke all 10 cigars then when it does he must buy another one? I hope so that you understand me? Thanks
Posts: 1,018
Threads: 320
Joined: Jul 2010
You get me wrong why you put lighter 10 I want to player buy just one lighter and for example 10 cigars and then he use that one lighter until he smoke all cigars then he buy another one lighter.
Posts: 791
Threads: 20
Joined: Sep 2013
Reputation:
0
so do you want to buy 1 lighter for example, and you can use it for 10 times only?
or you can use it until you are out of cigars?
if so then try mine it will work
Posts: 1,018
Threads: 320
Joined: Jul 2010
05.10.2014, 09:18
(
Последний раз редактировалось Luca12; 05.10.2014 в 09:58.
)
Sorry eth I was wrong. Thanks I will try it
edit: I was make also variable when player buy a lighter
PlayerInfo[playerid][Lighter] = 1;
and then in command /smoke how can I change only when player light 10 times then ge het variable Lighter on 0 then he must buy another lighter if you know what I mean? Thanks
Posts: 152
Threads: 2
Joined: Nov 2013
Reputation:
0
Hey!
You mean if player press mouse left button, his/her smoke one cigar with lighter and if lighter is used 5 times when he cant use anymore and lighter will be removed from player and he needs buy new one. Its correct way ?