16.03.2012, 15:52
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
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