Jump to content
  • 0

Announces to selectable players


Echoes

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   6
  • Joined:  03/30/13
  • Last Seen:  

Hello

 

I have a doubt, or problem, or an idea?

The script I imagine is that, with a certain variable actived (1), I will be able to see a timed announce, but if I have that variable deactivated (0), I will not see the announce. This applies to all the players in the server.

 

I managed to make a pseudo-script with this in mind, but since announce is not attached to any player since it's automatic, I cancel these broadcasts to all players.
 

Ex.:

When the variable #VariableAnnounce is set to 0, I will not see the 'Announce Here' broadcast in my screen, but other players would if they have the #VariableAnnounce set to 1.

 

Is this possible? I think this is a script thing, not source.

 

Thank you :D

Edited by Echoes
Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


addrid(0);

if ( #VariableAnnounce ) {

announce "message",bc_self;

}

end;

  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


addrid(0);

if ( #VariableAnnounce ) {

announce "message",bc_all;

}

end;

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   6
  • Joined:  03/30/13
  • Last Seen:  

addrid(0);
if ( #VariableAnnounce ) {
    announce "message",bc_all;
}
end;

If I'm not wrong, that script would announce the message to all players in the server, independently if one have this variable deactivated.

 

But, I don't sure how addrid(0) would do a difference. I know when it is 0 it means that will attach RIDs to all players in server.

 

The script I want is to certain players that have the variable activated, would see that announce.

 

Thanks for the reply.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  99
  • Reputation:   10
  • Joined:  01/13/12
  • Last Seen:  


addrid(0);

if ( #VariableAnnounce ) {

announce "message",bc_all;

}

end;


announce "message",bc_self;

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

So basically it's an announcer that can be turned on and off by the players? It's up to the players if they want to see the announces or not?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   6
  • Joined:  03/30/13
  • Last Seen:  

Since all helped, will not choose an asnwer,will +1

 

 
PandaLovesHamster

Posted Yesterday, 08:06 AM

So basically it's an announcer that can be turned on and off by the players? It's up to the players if they want to see the announces or not?

 

 

I didn't saw your post, sorry :c

Yes, was that.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

Since all helped, will not choose an asnwer,will +1

 

 
PandaLovesHamster

Posted Yesterday, 08:06 AM

So basically it's an announcer that can be turned on and off by the players? It's up to the players if they want to see the announces or not?

 

 

I didn't saw your post, sorry :c

Yes, was that.

 

Emistry's code should work this way. You just create an NPC where they can turn the variable on or off.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  265
  • Reputation:   95
  • Joined:  09/30/14
  • Last Seen:  

addrid(0);
if ( #VariableAnnounce ) {
    announce "message",bc_self;
}
end;

 

Hey that's pretty creative! Never thought of doing it like this before. :]

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   3
  • Joined:  06/29/15
  • Last Seen:  

Hi, if i Use this, if a player gets announce when is talking to NPC, it gets freeze and have to relog, is it normal?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   3
  • Joined:  06/29/15
  • Last Seen:  

 

addrid(0);
if ( #VariableAnnounce ) {
    announce "message",bc_self;
}
end;

 

Hey that's pretty creative! Never thought of doing it like this before. :]

 

Some Help, the others NPC dialog got error (close dialog or freeze) when I announce something and the player is talking to npc

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...