Jump to content
  • 0

Announce # of people on Pub upon entry


JagLers

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  11/22/19
  • Last Seen:  

Im trying to create a acript which will announce the number of player inside a pub on entry, but i cant seem to trigger the waiting room after adding "@set". Can someone help me with this?

 

quiz_00,17,114,4	script	Waiting	726,{
end;
OnInit:
    waitingroom "Waiting Room",8,"Waiting2::OnStart",1;
    end;
}

-	script	Waiting2	-1,{
	end;
OnStart:
	set .@join getwaitingroomstate(0,"Waiting");
    announce  .@join + " People Inside!",bc_blue|bc_all;
    end;

}

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

*set <variable>,<expression>{,<char_id>};
set .@join,getwaitingroomstate(0,"Waiting");

you missed a comma , read the console errors before anything.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  11/22/19
  • Last Seen:  

forgot to tag this as solved.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...