English Solved How to change the nickname in TaskForceRadio correctly?

Chrone

User
4/8/20
2
0
250
How to make sure that when the game throws it to TaskForceRadio, the nickname of the game, for example, DeimosLife_001, and when leaving the channel, the player's nickname changes to the original one?
 
Solution
Hello!

Can you try to change in your @task_force_radio/addons/task_force_radio/functions/fn_sendFrequencyInfo.sqf :
Code:
TFAR_player_name = name player;
by these lines :
Code:
_TFAR_random_name = "";

if ((player getVariable ["TFAR_random_name",""]) isEqualTo "") then {
    _allAlphabets = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9"];
    _TFAR_random_name= format ["%1%2%3%4%5%6%7%8%9%10%11%12%13%14%15", selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets...
Hello!

Can you try to change in your @task_force_radio/addons/task_force_radio/functions/fn_sendFrequencyInfo.sqf :
Code:
TFAR_player_name = name player;
by these lines :
Code:
_TFAR_random_name = "";

if ((player getVariable ["TFAR_random_name",""]) isEqualTo "") then {
    _allAlphabets = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9"];
    _TFAR_random_name= format ["%1%2%3%4%5%6%7%8%9%10%11%12%13%14%15", selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets, selectRandom _allAlphabets];

    player setVariable ["TFAR_random_name",_TFAR_random_name,true];
} else {
    _TFAR_random_name = player getVariable ["TFAR_random_name","Error"];
};

TFAR_player_name = _TFAR_random_name;

Tell me if that works :)
 
Solution