Thread: Hat Script
View Single Post
  #2  
Old 04-23-2001, 05:53 AM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Hmm.

Blah, those are two seperate NPC's but here ya go:
NPC Code:
//Hat Setting NPC
if (playerchats&&strequals(#c,hatname)) {
setstring client.hat,hatimage.png;
}
//NPC for putting the hat on or off.
if (weaponfired) {
if (strequals(#P1,)) {
setplayerprop #P1,#s(client.hat);
setani haton,;
}
else {
setani hatoff,;
setplayerprop #P1,;
}
}


Should work I think, although you might have to put in some sleeps and freezeplayers
__________________

Reply With Quote