Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. /*
  2. Author: Maxence Lyon
  3. Altis DEV: https://altisdev.com/user/maxence-lyon
  4. Teamspeak 3: ts.the-programmer.com
  5. Web site: www.the-programmer.com
  6. Steam: « Une Vache Sur CS – Maxence », please leave a message on my profile who says the exact reason before adding me.
  7.  
  8. Terms of use:
  9. - This file is forbidden unless you have permission from the author. If you have this file without permission to use it please do not use it and do not share it.
  10. - If you have permission to use this file, you can use it on your server however it is strictly forbidden to share it.
  11. - Out of respect for the author please do not delete this information.
  12.  
  13. License number:
  14. Server's name:
  15. Owner's name:
  16. */
  17. _with = param [0,objNull,[objNull]];
  18. _curConfig = missionConfigFile >> "Max_Settings_Phone";
  19. if (player getVariable "in_call") exitWith {};
  20. uiSleep 2;
  21.  
  22. _withNum = player getVariable "calling_number";
  23.  
  24. if (_with getVariable "calling_ano") then {
  25. _withNum = (["STR_ANONYME"] call max_phone_fnc_localize);
  26. _with setVariable ["calling_ano",false,true];
  27. };
  28.  
  29. {
  30. if ((_x select 1) isEqualTo _withNum) exitWith {
  31. _withNum = _x select 0;
  32. };
  33. } foreach maxence_contact;
  34.  
  35. _time = player getVariable "calling_time";
  36. _time = _time / 3600;
  37. _time = [_time] call BIS_fnc_timeToString;
  38.  
  39. hint parseText format [(["STR_END_CALL"] call max_phone_fnc_localize),_withNum,_time];
  40.  
  41. [getPlayerUID player,maxence_sms,maxence_appel] remoteExec ["max_phone_fnc_updateForfait",2];
  42.  
  43. player setVariable ["calling_time",0];
  44. player setVariable ["calling_with",objNull,true];
  45. player setVariable ["calling_direction",0];
  46. maxence_caller = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement