Thread: sethead timeout
View Single Post
  #7  
Old 07-17-2001, 09:59 AM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
NPC Code:

if (playerchats) {
if (strcontains(#c,sethead)) {
tokenize #c;
if (strequals(#t(0),sethead)) {
if (sec==1) {
setplayerprop #3, #t(1);
sec++;
}
while (sec > 1) {
sleep 1;
sec++;

if (strequals(#t(0),sethead)) {
message Wait 10 seconds before changing your head again!;
}
}
if (sec==10) {
sec=1;
}
}
}
}
}



That might work....i this wasnt tested....So...im not sure if it will work. But it should.
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
Reply With Quote