Jump to content

Search the Community

Showing results for tags 'task force'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Altis Life RPG
    • Headquarters
    • Introductions
    • RULES
  • Altis Life RPG Community
    • General Discussion
    • Helper Recruitment
    • Altis Life Server Advertising
    • Discord (join us for discuss)
  • Tools and Administration
    • Altis Life RPG (official Framework)
    • Altis Life Wiki
    • Server Setup and Configuration
    • Database
    • Security
    • Maintenance
  • Altis Life Customization
    • Server & Scripting Help Desk
    • Releases & Download
    • Misc & Tools
  • Kool Kids Klub's Oof
  • Kool Kids Klub's Secret Spot

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


CPU


Memory


Hard Drive


Graphic Card


PSU


Case


Monitor


Description - Other Accessories

Found 1 result

  1. Author: IDK Edited: David (variables, flash times, text and how it checks stuff) G'day, Here is some code that will make the player screen flash black if they either aren't in the "TaskForceRadio" Channel, haven't enabled the plugin or have any other errors to do with TFAR. Tutorial: Open your Mission file: e.g. Altis_Life.Altis Go to "core\init.sqf" and add the following either at the very bottom of the file, making sure to edit where I have told you to!!! if (isNil "TFAR_fnc_isTeamSpeakPluginEnabled") exitwith { 999999 cutText ["Task Force Radio is not running on your computer. Please re-sync and retry","BLACK FADED"]; 999999 cutFadeOut 99999999; if (player getvariable "taskfr") then { player setvariable ["taskfr",false,true]; }; }; _TFenabled = [] call TFAR_fnc_isTeamSpeakPluginEnabled; if (!(_TFenabled)) then { while {!([] call TFAR_fnc_isTeamSpeakPluginEnabled)} do { titleText ["Please enable Task Force Radio in your TS3 Plugins! || TS3 -> Settings -> Plugins", "BLACK"]; sleep 2; if (player getvariable "taskfr") then { player setvariable ["taskfr",false,true]; }; }; }; Dvid_TFEnabled = true; Dvid_onTsServer = "Your TS Server Name There" == (call TFAR_fnc_getTeamSpeakServerName); ///////////////////////Edit This line (the channel at the top of your TS (where you right click and "Edit Virtual Server"), yes, get the name of that goes here) Dvid_onChannel = "TaskForceRadio" == (call TFAR_fnc_getTeamSpeakChannelName); titleText ["Task Force Radio loaded succesfully","BLACK IN"]; [] spawn { while {true} do { _isadmin = false; if (!(isNil "life_adminlevel")) then { _adminlvl = life_adminlevel call BIS_fnc_parseNumber; if (_adminlvl > 0) then { _isadmin = true; }; }; _TFenabled = [] call TFAR_fnc_isTeamSpeakPluginEnabled; if ((!(_TFenabled)) && (Dvid_TFEnabled)) then { if (!(_isadmin)) then { titleText ["Please enable Task Force Radio in your TS3 Plugins! || TS3 -> Settings -> Plugins", "BLACK"]; Dvid_TFEnabled = false; }; if (player getvariable "taskfr") then { player setvariable ["taskfr",false,true]; }; }; _onTsServer = "same as Dvid_onTsServer variable " == (call TFAR_fnc_getTeamSpeakServerName); //////////////////////Edit too pls, or dont but it wont work if you dont if (!(_onTsServer)) then { if (!(_isadmin)) then { titleText ["Please join the teamspeak server! Adress: here", "BLACK"]; Dvid_onTsServer = false; }; if (player getvariable "taskfr") then { player setvariable ["taskfr",false,true]; }; } else { if (!(Dvid_onTsServer)) then { if (!(_isadmin)) then { titleText ["TS server check completed. Welcome!","BLACK IN"]; Dvid_onTsServer = true; }; if (!(player getvariable "taskfr")) then { player setvariable ["taskfr",true,true]; }; }; }; _onChannel = "TaskForceRadio" == (call TFAR_fnc_getTeamSpeakChannelName); if (!(_onChannel)) then { if (!(_isadmin)) then { titleText ["Please reload the plugin to join the TFR channel || Settings -> Plugins -> Reload All", "BLACK"]; Dvid_onChannel = false; }; if (player getvariable "taskfr") then { player setvariable ["taskfr",false,true]; }; } else { if (!(Dvid_onChannel)) then { titleText ["TS channel check completed. Welcome!","BLACK IN"]; Dvid_onChannel = true; if (!(player getvariable "taskfr")) then { player setvariable ["taskfr",true,true]; }; }; }; if ((_TFenabled) && (!(Dvid_TFEnabled))) then { titleText ["Plugin enabled, welcome back!","BLACK IN"]; Dvid_TFEnabled = true; if (!(player getvariable "taskfr")) then { player setvariable ["taskfr",true,true]; }; }; sleep 2; }; }; Then follow this tutorial to set up TFAR on client side (Credit goes to: MoNtEcRiStO©, for the linked tutorial): https://www.altisliferpg.com/topic/104-tutorial-install-task-force-radio-dedicated-server-client-side/ Done! YOU MUST GIVE CREDIT TO USE!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.