Sorry Blacknight, i was unclear. But you awnser a part of my question, so thank you (my english is sometimes good, sometimes bad...)
I will try again to explain with an example.
Imagine i bind a new vsay like that:
/bind key "Say CUSTOMTEXT"
The key is all time a character in all exemple.
So does it possible (but i really think no with your awnser, but I'm not sure...) to do that:
/bind "pwd" "Say CUSTOMTEXT"
I mean, take a string (like vsay: v21 for example) for take to place of the character?
In this example, the vsay is for me (v21) a string. (can we use any other string than v12345, like "pwd"? or other)
Sorry if you still anwser that, I wasn't sure.
Thanks again. (sorry for my english)
I think I have a basic understanding of what you meant. It is fine you don't have to apologise. Not everyone is perfect at least you tried which is admirable and I am sure many of us like me respect you for that.
From your latest post, I think you meant that you want to show a custom text when using a vsay (eg. v10) am I right? In this case, your request is similar to this post (http://fearless-assa...ats-binds-help/). Just in case you don't know how it works and since I have some free time, I will explain it to you step by step.
I assume you have a basic knowledge of how to use a script and how to make a script based on the fact that you have general knowledge of how to use binds. As such, I will skip that part in my tutorial.
How to create a vsay bind such that when used it will show a custom text instead of the default text when using the bind?
The code for the bind (In this case, I be using the bind vsay_cheer as an example as it is related to the post I mentioned above.). I will be using the Z key in this case. You can switch it to any other keys you desire.
You can insert this particular line in your autoexec.cfg and execute your autoexec.cfg in your console. Press the z button for it to work.
bind z vsay cheer YEAH!!!! WOOHOO!!!
In this case, the cheer vsay sound would be played. You can substitute the code "cheer" with any other code from this list:
Note: This list does not include custom vsays from custom soundpacks. Credits goes to -=Medic=- who is the author of the tutorial post (http://fearless-assa...ound-shortcuts/)
11 - Path cleared. - PathCleared
12 - The enemy is weakened. - EnemyWeak
13 - All clear. - AllClear
14 - Incoming! - Incoming
15 - Fire in the hole! - FireInTheHole
16 - I'm defending. - OnDefense
17 - I'm attacking. - OnOffense
18 - Taking fire! - TakingFire
19 - Mines cleared. - MinesCleared
10 - Enemy in disguise. - EnemyDisguised
21 - Medic! - Medic
22 - I need ammo! - NeedAmmo
23 - I need backup! - NeedBackup
24 - We need an engineer! - NeedEngineer
25 - Cover me! - CoverMe
26 - Hold fire! - HoldFire
27 - Where to? - WhereTo
28 - We need Covert Ops! - NeedOps
31 - Follow me! - FollowMe
32 - Let's go! - LetsGo
33 - Move! - Move
34 - Clear the path! - ClearPath
35 - Defend our objective! - DefendObjective
36 - Disarm the dynamite! - DisarmDynamite
37 - Clear the mines! - ClearMines
38 - Reinforce the offense! - ReinforceOffense
39 - Reinforce the defense! - ReinforceDefense
41 - Yes! - Affirmative
42 - No! - Negative
43 - Thanks a lot! - Thanks
44 - You're welcome. - Welcome
45 - Sorry! - Sorry
46 - Oops! - Oops
51 - Yes! - Affirmative
52 - No! - Negative
53 - The enemy is weakened. - EnemyWeak
54 - Hi! - Hi
55 - Bye. - Bye
56 - Great shot! - GreatShot
57 - Yeah! - Cheer
581 - Thanks a lot! - Thanks
582 - You're welcome. - Welcome
583 - Oops! - Oops
584 - Sorry! - Sorry
585 - Hold your fire! - HoldFire
586 - Good game! - GoodGame
71 - Command acknowledged! - CommandAcknowledged
72 - Command declined! - CommandDeclined
73 - Command completed! - CommandCompleted
74 - Destroy the primary objective! - DestroyPrimary
75 - Destroy the secondary objective! - DestroySecondary
76 - Destroy the construction! - DestroyConstruction
77 - Construction underway! - ConstructionCommencing
78 - Repair the vehicle! - RepairVehicle
79 - Destroy the vehicle! - DestroyVehicle
70 - Escort the vehicle! - EscortVehicle
You can substitute the phrase "YEAH!!!! WOOHOO!!!" with any custom text you desire.
For more advanced scripting similar to the request here: http://fearless-assa...ats-binds-help/
You can add [K] or any other of such code into your custom text. Such codes allow you to do specific task like in the case of [K] it will always be replaced by the name of the last person you killed.
In other words, if you use the code below:
bind vsay cheer I killed [k].
Lets take a scenario as an example. You were in a firefight and killed a player name "ETPlayer". Using the above code would result in the cheer vsay being played with a custom text "I killed ETPlayer." Notice that the code [k] is replaced to the name of the player you just killed.
The full list of such code similar to [k] is shown below:
[A] - Past person who gave you ammo.
[D] - Last person who killed you.
[H] - Last person who gave you health.
[K] - Last person you killed.
[L] - Your current location. (The coordinates of your current location would be shown.)
[N] - Your nickname.
[R] - Last person who revived you.
[P] - Teammate you are pointing at.
[S] - Your health (HP).
[W] - Weapon you are currently holding.
[T] - Ammo u have in current weapon.
You can replace the code "[k]" with any other code like [a] as shown in the list.
If you are not sure how to create a script. I have attached a script in this post. You can edit it to your liking. To use the script, go to console by pressing the "~" key on your keyboard and type "/exec vsayscript.cfg". After executing the script, you can just press the key you set to use the vsay with the custom text you have configured.
If you did not change anything in the script I attached in this post, you can press the z key which will do exactly as I have shown in my first example where the cheer vsay would be played and a custom text "Yeah!!! Woohoo!!!" would be shown. If you press the o key, the cheer vsay would be played and a custom text "I killed (The name of the player you last killed)" would be shown (similar to my second example).
If you want more information, a good tutorial, written by -=Medic=-, that you can read (as mentioned earlier) can be found here: http://fearless-assa...und-shortcuts/
With this knowledge, I am sure you can find many creative ways to create your binds. I have seen many take advantage of such binds for their own personal use which is very creative. I am sure you can too.
Thank you for taking some of your time to read this reply. I know it is long but I just want to make sure you get the answer you desire.