Quote:
Originally posted by darkriders_p2p
I don't want to get complicated.
NPC Code:
if (strequals(#v(this.hats[i]),1)) {
I use that to check if the player has the the hat, so how could I replace this to check for a string.
If you would like to see the script, my MSN email is [email protected]
|
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).