-
Content Count
4230 -
Joined
-
Last visited
-
Medals
Single Status Update
See all updates by GEORGE FLOROS GR
-
Hello,
I need your help, if you have some time for me.
You make a rank script and i would like to add skills by rank. So when a player got a rank he had setUnitRecoilCoefficient and setCustomAimCoef decrease. I do something like this :
_player = ["GF_Rank_PRIVATE"];
{
if (true) then {player setCustomAimCoef 0.95 && player setUnitRecoilCoefficient 0.95};
['Felicitations! Vous avez ete promu soldat de 1Classe!',0,0.6,2,1] spawn bis_fnc_dynamictext;
uisleep 10;
['Votre recul d arme et votre visee ont ete ameliores de 5% .',0,0.6,2,1] spawn bis_fnc_dynamictext;
uisleep 10;
} forEach player;
_player = ["GF_Rank_CORPORAL"];
{
if (true) then {player setCustomAimCoef 0.90 && player setUnitRecoilCoefficient 0.90};
['Felicitations! Vous avez ete promu Caporal',0,0.6,2,1] spawn bis_fnc_dynamictext;
uisleep 10;
['Votre recul d arme et votre visee ont ete ameliores de 5% .',0,0.6,2,1] spawn bis_fnc_dynamictext;
uisleep 10;
} forEach player;It is working but never stop. I have the message, but the message for the next level too. Where am i wrong?
Can you help me please, as i am not a coder.
Regards,
Tiger.