View Single Post
  #12  
Old 06-11-2002, 02:45 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
Quote:
Originally posted by GrowlZ1010


Presuming the number of the hat is 1:

NPC Code:
if (strcontains(#s(client.hats),1)) {



... will check if the number 1 (the hat's number) is in the client.hats string, so basically, will have the effect of checking if the player has a certain hat (in this case, hat 1).
ya I fixed it, It was pretty easy :P
NPC Code:
if (strequals(#s(hats[#v(i)]),1)) {

__________________
maximus_asinus
Reply With Quote