[Tuto] Anti Alt F4
-
<p>Bonjour à tous,</p>
<p> </p>
<p>Ce tutoriel n'est pas de moi, mais de <span>Pink3vil, voici le</span> lien : <a href="http://altisdev.com/index.php?/topic/271-anti-alt-f4-ctrl-alt-suppr-et-autres/" rel="external nofollow">http://altisdev.com/index.php?/topic/271-anti-alt-f4-ctrl-alt-suppr-et-autres/</a></p>
<p> </p>
<p>Fichier core\functions\fn_KeyHandler.sqf, ajoutez ceci :</p>
<pre class="ipsCode prettyprint">
// ANTI ALT + F4
case 62:
{
if(_alt && !_shift) then
{
SOCK_fnc_updateRequest;
diag_log format ["SERVEUR KOSMOS: %1 utilise ALT+F4 pour se déconnecter (Prenez une capture et signalez le sur le Forum)",_player getVariable["realname",name _player]];
[[1,format["SERVEUR KOSMOS: %1 utilise ALT+F4 pour se déconnecter (Prenez une capture et signalez le sur le Forum)",_player getVariable["realname",name _player]]],"life_fnc_broadcast",nil,false] spawn life_fnc_MP;
SOCK_fnc_updateRequest;
};
};// ANTI CTRL + ALT + DEL
case 211:
{
if(_ctrlKey && _alt) then
{
SOCK_fnc_updateRequest;
diag_log format ["SERVEUR KOSMOS: %1 utilise CTRL + ALT + DEL pour se déconnecter (Prenez une capture et signalez le sur le Forum)",_player getVariable["realname",name _player]];
[[1,format["SERVEUR KOSMOS: %1 utilise CTRL + ALT + DEL pour se déconnecter (Prenez une capture et signalez le sur le Forum)",_player getVariable["realname",name _player]]],"life_fnc_broadcast",nil,false] spawn life_fnc_MP;
SOCK_fnc_updateRequest;
};
};// ANTI CTRL + ESC
case 1:
{
if( _ctrlKey ) then
{
SOCK_fnc_updateRequest;
diag_log format ["SERVEUR KOSMOS: %1 utilise CTRL + ESC pour se déconnecter (Prenez une capture et signalez le sur le Forum)",_player getVariable["realname",name _player]];
[[1,format["SERVEUR KOSMOS: %1 utilise CTRL + ESC pour se déconnecter (Prenez une capture et signalez le sur le Forum)",_player getVariable["realname",name _player]]],"life_fnc_broadcast",nil,false] spawn life_fnc_MP;
SOCK_fnc_updateRequest;
};
};
</pre>
<p>Voilà j'espère que ça aidera certaines personnes si vous avez un soucis n'hésitez pas
</p>
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
</p>
</p>
</p>