PDA

View Full Version : Hat Script


Nai
04-23-2001, 05:46 AM
What is the hat script for offline? Like where you say like something then you wear the hat. Like it appears on your head like in the Hat Store? Or like if you touch it you wear it.

grim_squeaker_x
04-23-2001, 05:53 AM
Blah, those are two seperate NPC's but here ya go:
//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 ;)

Nai
04-23-2001, 06:19 AM
thanks