tnks.
How can i set a variable on player. something like player_injured or infected.
for example i set a global variable as false in init.sqf
run a script located in mpmissions/....... who change this variable as true.
and thers other script who change it again as false if player decided run it.
What i need if is player logout whitout change the variable as false.. and log again this variable still be in true.
this is what i try:
init.sqf
if (r_player_x) then {
xvariable = true;
}else{
xvariable = false;
};
scriptmpmissions.sqf
xvariable = true;
systemChat ("xvariable is true");
r_player_x = true;
player setVariable["x",true,true];
scriptmpmissions.sqf (give the option to set xvariable as false again)
xvariable = false;
r_player_x = false;
player setVariable["x",false,false];