i tried all sort of possibilities, but none sofar worked.
changed(integer change)
{
// something changed
if (change & CHANGED_LINK)
{
// and it was a link change
if (llAvatarOnSitTarget() != NULL_KEY && reciever == NULL_KEY)
{
if(llAvatarOnSitTarget() != reciever && busy == TRUE)
{
Say("Sorry, "+llKey2Name(llAvatarOnSitTarget())+" chair in use"
; return;
}
reciever = llAvatarOnSitTarget(); // store sitting avatar's key
LP = llKey2Name(reciever);
SetHoovertest(LP + "\nYou earned: L$"+(string)campmoney + " Sofar"
;llSetTimerEvent(camptime);
busy = TRUE;
}
else if( reciever != NULL_KEY)
{
// if the avatar has gotten up
if(campmoney > 0)
{
// give the avatar the amount of money he has earned.
GiveMoney(reciever,campmoney);
SetInactive();
}
}
}
}
SetInactive(); <--- Resets busy to FALSE.
( click QUOTE te see the text better formatted).
kind regards,
Demon