Command to buy a item
#7

what do you mean?
im not gonna explain the basics of the if .. else if.. logic to you.

theres many ways to write this code,
i would actually write it much different but just trying to get it working for them.

this code checks if
player is near the buying point.. if not send them message and stop the function
if passed then check for gun lic,
if they have a gun lic then send message and stop function

if no gun lic let them buy one.

edit:

on and your correct

giveplayerid should be playerid
i missed that
Reply


Messages In This Thread
Command to buy a item - by Dripac - 16.03.2012, 15:31
Re: Command to buy a item - by [KHK]Khalid - 16.03.2012, 15:41
Re: Command to buy a item - by Dripac - 16.03.2012, 15:43
Re: Command to buy a item - by [KHK]Khalid - 16.03.2012, 15:45
Re: Command to buy a item - by Jonny5 - 16.03.2012, 15:46
Re: Command to buy a item - by [KHK]Khalid - 16.03.2012, 15:48
Re: Command to buy a item - by Jonny5 - 16.03.2012, 15:52
Re: Command to buy a item - by Dripac - 16.03.2012, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)