[Fini]Corr hint Inter/Motd
[Fini]Corr hint Inter/Motd
dans mpmission/ClientMotd
dans mpmission/description.ext
dans mpmission/core/function/Keyhandler.sqf
- Code:
/*
ClientMOTD.sqf
*/
while {true} do
{
sleep 30;
hintSilent parseText format["Init<br/>MOTD", 12];
player say3D "Motd";
sleep 60;
hintSilent parseText format["MOTD Test<br/>1", 12];
player say3D "Motd";
sleep 60;
hintSilent parseText format["MOTD Test<br/>2", 12];
player say3D "Motd";
sleep 60;
hintSilent parseText format["MOTD Test<br/>3", 12];
player say3D "Motd";
sleep 60;
hintSilent parseText format["MOTD Test<br/>4", 12];
player say3D "Motd";
sleep 21330;
};
dans mpmission/description.ext
- Code:
class Motd
{
name = "Motd";
sound[] = {"\sounds\Motd.ogg", 0.25, 1};
titles[] = {};
};
class Interaction
{
name = "Interaction";
sound[] = {"\sounds\Interaction.ogg", 0.20, 1};
titles[] = {};
};
dans mpmission/core/function/Keyhandler.sqf
- Code:
//O Key
case 24: {
if(_ctrlKey) then {
1 fadeSound 0.1;
hintSilent parseText format["Boules Quies:<t color='#ff0000'><br/>Enfoncées</t>", 12];
player say3D "Interaction";
}
else
{
if (soundVolume == 1) then {
1 fadeSound 0.5;
hintSilent parseText format["Boules Quies:<t color='#ff6a00'><br/>Mises</t>", 12];
player say3D "Interaction";
}
else
{
1 fadeSound 1;
hintSilent parseText format["Boules Quies:<t color='#00ff21'><br/>Enlevées</t>", 12];
player say3D "Interaction";
};
};
};
///U Key
case 22:
{
if(!_alt && !_ctrlKey) then {
if(vehicle player == player) then {
_veh = cursorTarget;
if (playerSide == west)then {
if((_veh == JailSasA) || (_veh == JailSasB))then {
_verrou=_veh getVariable "bis_disabled_Door_1";
if(!isNil"_verrou")then {
if(_verrou == 1)then {
_veh setVariable["bis_disabled_Door_1",0,true];
hintSilent parseText format["SAS Prison:<t color='#ff0000'><br/>Ouvert</t>", 12];
player say3D "car_unlock"
}else{
_veh setVariable["bis_disabled_Door_1",1,true];
hintSilent parseText format["SAS Prison:<t color='#00ff21'><br/>Fermé</t>", 12];
player say3D "car_unlock"
};
};
};
};
} else {
_veh = vehicle player;
};
if(_veh isKindOf "House_F" && {playerSide == civilian}) then {
if(_veh in life_vehicles && player distance _veh < 17) then {
_door = [_veh] call life_fnc_nearestDoor;
if(EQUAL(_door,0)) exitWith {hint localize "STR_House_Door_NotNear"};
_locked = _veh GVAR [format["bis_disabled_Door_%1",_door],0];
if(EQUAL(_locked,0)) then {
_veh SVAR [format["bis_disabled_Door_%1",_door],1,true];
_veh animate [format["door_%1_rot",_door],0];
systemChat localize "STR_House_Door_Lock";
} else {
_veh SVAR [format["bis_disabled_Door_%1",_door],0,true];
_veh animate [format["door_%1_rot",_door],1];
systemChat localize "STR_House_Door_Unlock";
};
};
} else {
_locked = locked _veh;
if(_veh in life_vehicles && player distance _veh < 17) then {
if(EQUAL(_locked,2)) then {
if(local _veh) then {
_veh lock 0;
} else {
[_veh,0] remoteExecCall ["life_fnc_lockVehicle",_veh];
};
hintSilent parseText format["Véhicule:<t color='#ff0000'><br/>Déverrouillé</t>", 12];
player say3D "car_unlock";
} else {
if(local _veh) then {
_veh lock 2;
} else {
[_veh,2] remoteExecCall ["life_fnc_lockVehicle",_veh];
};
hintSilent parseText format["Véhicule:<t color='#00ff21'><br/>Verrouillé</t>", 12];
player say3D "car_lock";
};
};
};
};
};
Slift- Messages : 143
Date d'inscription : 28/01/2017
Age : 38
Localisation : Bordeaux
Fiche RP
Prénom/Nom : *****
Profession:
Grade: *****
Sujets similaires
» [Fini]Son Hint
» [Fini]Système MOTD
» [Fini] Modification Prison
» [Fini] Boules Quies
» [Fini]Minage ShiftC
» [Fini]Système MOTD
» [Fini] Modification Prison
» [Fini] Boules Quies
» [Fini]Minage ShiftC
|
|