AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   AMXX Chat Relay [Discord <=> Ingame] (https://forums.alliedmods.net/showthread.php?t=318610)

iceeedr 09-10-2019 12:05

Re: AMXX Chat Relay [Discord <=> Ingame]
 
Code:

Format specifier
Specifier        Description
%b        Binary digits in the value
%n        Requires a client index. Expands to a string containing the player's name.
If the client index is 0, the string will be: Console
%N        Requires a client index. Expands to 1<2><3><4> where 1 is the player's name, 2 is the player's userid, 3 is the player's SteamID, and 4 the player's team name.
If the client index is 0, the string will be: Console<0><Console><Console>
%l        Translates a phrase from a key. Similar to %L with the difference it will use the client's index set internally by the function.
This is only allowed in functions which act directly on one or more clients.
Note:To complement this, a new ⇅ SetGlobalTransTarget native to set the current index has been added.
This is useful to be used before with natives which are not player-oriented", like a bunch of formatex.

PHP Code:

formatex(sMessageMAX_COMMAND_LENGTH"\*\*\* %n killed %n with a headshot from %s \*\*\*"killervictimsWpnName);
}
else
{
formatex(sMessageMAX_COMMAND_LENGTH"%n killed %n with %s"killervictimsWpnName); 


endnch 09-10-2019 12:08

Re: AMXX Chat Relay [Discord <=> Ingame]
 
Yeah I was just looking into that, will try to use the %n specifier.

Edit: Done.

Alber9091 09-11-2019 15:45

Re: AMXX Chat Relay [Discord <=> Ingame]
 
1.10 is to ahead, 1.90 would had been appreciated, even the latest [5249] will also be considered great.

iceeedr 09-11-2019 15:53

Re: AMXX Chat Relay [Discord <=> Ingame]
 
MAX_NAME_LENGTH is already set by default in amx 1.9+

Alber9091 09-11-2019 16:31

Re: AMXX Chat Relay [Discord <=> Ingame]
 
Quote:

Originally Posted by iceeedr (Post 2666699)
MAX_NAME_LENGTH is already set by default in amx 1.9+

I haven't seen plugin, but Aurthor in post mentioned Requirement AMXX 1.10

iceeedr 09-11-2019 16:52

Re: AMXX Chat Relay [Discord <=> Ingame]
 
And that is why I warned the author that it is not necessary to define "max_name_lenght" in the plugin, since the definition already exists by default in amxx 1.9 +

endnch 09-12-2019 10:21

Re: AMXX Chat Relay [Discord <=> Ingame]
 
Quote:

Originally Posted by iceeedr (Post 2666699)
MAX_NAME_LENGTH is already set by default in amx 1.9+

Fixed.

hckr 09-27-2019 18:19

Re: AMXX Chat Relay [Discord <=> Ingame]
 
Thanks for this job, I'm new at this and would like to know ¿How to install it for counter strike 1.6? ¡greetings!

OciXCrom 09-27-2019 20:51

Re: AMXX Chat Relay [Discord <=> Ingame]
 
Quote:

Originally Posted by hckr (Post 2668224)
Thanks for this job, I'm new at this and would like to know ¿How to install it for counter strike 1.6? ¡greetings!

It's nice to read the first post before asking questions that are already answered.

hckr 09-29-2019 21:52

Re: AMXX Chat Relay [Discord <=> Ingame]
 
Quote:

Originally Posted by OciXCrom (Post 2668228)
It's nice to read the first post before asking questions that are already answered.

It's also good to read that I mentioned that I'm new at this and so far I've only used amxx plugins to copy and paste, and the guide to this is a little difficult for me, this message goes with !the best energy!


pd_ I know it's a lot to ask before such work done, but if someone makes a video guide how to install these great files would appreciate =D


All times are GMT -4. The time now is 06:51.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.