Jump to content

Deadlesszombie

Moderators
  • Content Count

    1,642
  • Joined

  • Last visited

  • Days Won

    77

Everything posted by Deadlesszombie

  1. Deadlesszombie

    [4.4] Prison Clothes

    Author Name: Neil Smith / Deadlesszombie Difficulty: Easy Purpose of Script: Upon being jailed, the old loadout of the player is saved, then all items are removed from the player, and the jail uniform is assigned. If the player escapes jail, their gear is not returned, if they pay bail or do their full time, they recieve their clothing back! YOU WILL ALSO NEED YOUR OWN CLOTHES, "player addUniform "PUT YOUR UNIFORM FOR JAIL HERE!!!!!";" Go to MissionFile\core\civillian\fn_jailMe.sqf add this right under #include "..\..\script_macros.hpp" /* Author Bryan "Tonic" Boardwine Description: Once word is received by the server the rest of the jail execution is completed. Edited by Neil Smith */ private["_time","_bail","_esc","_countDown"]; params [ ["_ret",[],[[]]], ["_bad",false,[false]], ["_time",15,[0]] ]; put this under it: make sure you replace "player addUniform "PUT YOUR UNIFORM FOR JAIL HERE!!!!!";" //Begin jail uniform hint "Your gear has been placed in the evidence locker!"; old_gear = getUnitLoadout player; removeUniform player; removeHeadgear player; removeVest player; removeGoggles player; removeBackpack player; removeallWeapons player; removeallAssignedItems player; player addUniform "PUT YOUR UNIFORM FOR JAIL HERE!!!!!"; you should now have this: #include "..\..\script_macros.hpp" /* Author Bryan "Tonic" Boardwine Description: Once word is received by the server the rest of the jail execution is completed. Edited by Neil Smith */ private["_time","_bail","_esc","_countDown"]; params [ ["_ret",[],[[]]], ["_bad",false,[false]], ["_time",15,[0]] ]; //Begin jail uniform hint "Your gear has been placed in the evidence locker!"; old_gear = getUnitLoadout player; removeUniform player; removeHeadgear player; removeVest player; removeGoggles player; removeBackpack player; removeallWeapons player; removeallAssignedItems player; player addUniform "PUT YOUR UNIFORM FOR JAIL HERE!!!!!"; Now scroll down and add this for each case function, depending on if you want the players to get their gear on what case (Note: case _bail means they paid the bail and they are now free, case _esc means they escaped prison, and case !_esc && !_bail means they did their full time in prison) player setUnitLoadout old_gear; hint "Because you have done your time in prison, you will recieve your clothing shortly"; [] call life_fnc_saveGear; An example of what you should have depending on how you want it: switch (true) do { case (_bail): { life_is_arrested = false; life_bail_paid = false; hint localize "STR_Jail_Paid"; serv_wanted_remove = [player]; player setPos (getMarkerPos "civ_spawn_1"); [getPlayerUID player] remoteExecCall ["life_fnc_wantedRemove",RSERV]; hint "Because you have paid your bail, you will recieve your clothing shortly"; player setUnitLoadout old_gear; [] call life_fnc_saveGear; [5] call SOCK_fnc_updatePartial; }; case (_esc): { life_is_arrested = false; hint localize "STR_Jail_EscapeSelf"; [0,"STR_Jail_EscapeNOTF",true,[profileName]] remoteExecCall ["life_fnc_broadcast",RCLIENT]; [getPlayerUID player,profileName,"901"] remoteExecCall ["life_fnc_wantedAdd",RSERV]; hint "Because you escaped from jail, the jail guards have placed your gear in the trash"; [] call life_fnc_saveGear; [5] call SOCK_fnc_updatePartial; }; case (alive player && !_esc && !_bail): { life_is_arrested = false; hint localize "STR_Jail_Released"; [getPlayerUID player] remoteExecCall ["life_fnc_wantedRemove",RSERV]; player setPos (getMarkerPos "civ_spawn_1"); player setUnitLoadout old_gear; hint "Because you have done your time in prison, you will recieve your clothing shortly"; [] call life_fnc_saveGear; [5] call SOCK_fnc_updatePartial; }; }; Example full script if you are completely lost Special thanks to @DesusaED and @TwisT For confirming and helping me fix an issue
  2. Deadlesszombie

    [4.4R4] UPM Notification

    Author: UPM https://www.youtube.com/channel/UC5WtPqhP-uGfSQtsTR5JXmw Video: https://www.youtube.com/watch?v=t-LbIl8pjrU Download: https://mega.nz/#!9eZDnCgD!MozYasACNvXwSB8yjrRe67e9HKuO9ID-d1kgNNwbXrM Tutorial From (Basically a copy paste): https://altisdev.com/topic/8439/système-de-notification/2 Installation Add at the end of your Functions.hpp class UPM { tag = "UPM"; class UPM_system { file = "UPM"; class showNotification {}; }; }; In your description.ext the part class RscTitles Add #include "UPM\Rsc\RscNotification.hpp" Download then extract the UPM file at the root of your mission. Settings for it: _title : STRING | Default Value : "" _text : STRING | Default Value : "" _stripColor : ARRAY | Default Value : [0.043,0.486,0.769,1] | (OPTIONNAL) _sound : STRING | Default Value : "additemfailed" | (OPTIONNAL) Basic use ["Title","Content pf message"] call UPM_fnc_showNotification Advanced use ["Title","Content of message",[0.043,0.486,0.769,1],"mysound"] call UPM_fnc_showNotification Example of use stringtable [“Information”,localize “STR_NOTF_SendingData”] call UPM_fnc_showNotification; Format [“Information”,format ["Hello %1",name player]] call UPM_fnc_showNotification;
  3. Scripting and map edits are two different things btw
  4. Deadlesszombie

    Can't join the server.

    CallExtension 'extDB2' could not be found 22:27:44 "extDB2: Error with Database Connection" Check your settings for extdb and login
  5. Locked, we don't condone software theft
  6. Deadlesszombie

    Can't join the server.

    PASTEBIN your new logs
  7. Deadlesszombie

    [Tutorial] Gang Capturable Areas

    Look at your RPT Logs of your server
  8. Deadlesszombie

    [Tutorial] Protect your mission

    Make sure you understand what he fixed for you, you were missing quotes if you needed to change the top, which is not the case
  9. Deadlesszombie

    [Tutorial] Protect your mission

    Your server name needs to be exactly the same in the top line
  10. Deadlesszombie

    [4.4R4] UPM Notification

    Your previous posted script had the ExitWith Wrong, the most recent has it fixed
  11. Deadlesszombie

    [4.4R4] UPM Notification

    Remove TitleText Edit: NVM read it wrong
  12. Deadlesszombie

    Chaotic Gaming - Altis Life

    Instructions unclear banned mahiym
  13. Deadlesszombie

    [4.4] Prison Clothes

    Life_cash = 0; ?????????
  14. Deadlesszombie

    Chaotic Gaming - Altis Life

    It hurts to see every screenshot angled
  15. Deadlesszombie

    BlackJack Script [BAREBONES]

    That unfortunately is the flaw of the script, rather easy to win
  16. Deadlesszombie

    [Release] Robbery Annoucement

    Warning Message: File mpmissions\altis_life.Altis\The-Programmer\WhitelistMenu\functions.cpp, line 11: /CfgFunctions.functions: Member already defined. Warning Message: File mpmissions\altis_life.Altis\The-Programmer\EntreprisesMarkers\functions.cpp, line 4: /CfgFunctions.functions: Member already defined. Warning Message: File mpmissions\altis_life.Altis\The-Programmer\Fourriere\functions.cpp, line 6: /CfgFunctions.functions: Member already defined. Warning Message: File mpmissions\altis_life.Altis\The-Programmer\WhitelistMenu\functions.cpp, line 11: /CfgFunctions.functions: Member already defined. Warning Message: File mpmissions\altis_life.Altis\The-Programmer\EntreprisesMarkers\functions.cpp, line 4: /CfgFunctions.functions: Member already defined. Error in expression <Config","Repair_Job_Localization"] call theprogrammer_core_fnc_localize),The_Pro> Error position: <theprogrammer_core_fnc_localize),The_Pro> Error Undefined variable in expression: theprogrammer_core_fnc_localize File mpmissions\altis_life.Altis\The-Programmer\RepairJob\init.sqf, line 6 Scripting function 'max_phone_fnc_cellphonerequest' is not allowed to be remotely executed 14:06:02 Error in expression <erInput true; showChat false; hint ""; [LIFE_ID_PlayerTags,"onEachFrame"] spawn > 14:06:02 Error position: <LIFE_ID_PlayerTags,"onEachFrame"] spawn > 14:06:02 Error Variável indefinida na expressão: life_id_playertags 14:06:02 File core\functions\fn_loggedOut.sqf [life_fnc_loggedOut], line 63 14:04:04 Error in expression <hone_fnc_cellPhoneRequest",2]; [] spawn theprogrammer_core_fnc_clientInit; > 14:04:04 Error position: <theprogrammer_core_fnc_clientInit; > 14:04:04 Error Variável indefinida na expressão: theprogrammer_core_fnc_clientinit 14:04:04 File mpmissions\__CUR_MP.Altis\core\init.sqf, line 177 14:00:53 Error in expression <Config","Repair_Job_Localization"] call theprogrammer_core_fnc_localize),The_Pro> 14:00:53 Error position: <theprogrammer_core_fnc_localize),The_Pro> 14:00:53 Error Variável indefinida na expressão: theprogrammer_core_fnc_localize 14:00:53 File mpmissions\__CUR_MP.Altis\The-Programmer\RepairJob\init.sqf, line 6
  17. Deadlesszombie

    [4.4] Prison Clothes

    I do not understand anything you just said but logically it does not make sense for why it would not work, have the playerSkins called after a few seconds or something
  18. Deadlesszombie

    [4.4] Prison Clothes

    You probably have a playerSkins error
  19. Deadlesszombie

    [4.4] Prison Clothes

    Well you would need the classname of the uniform and it should work without an issue
  20. Deadlesszombie

    Key Cards

    For a very simple solution, you can just make an item set that on a player when they have the keycard virtual item and have a check if they have the item or something of the sort, would let them open the Mattaust buildings
  21. Deadlesszombie

    Need help whitelisting cops.

    Nope its completely up to your discretion on how you do it, its a framework after all
  22. Deadlesszombie

    Need help whitelisting cops.

    That's up to you to decide, a rank structure from 1 - 7, 7 being the sheriff/etc
  23. Deadlesszombie

    Cliffton:ERP - Home of True Elite Roleplay

    Looks nicely done
  24. Deadlesszombie

    AltisLife 5.0 Weapon\Clothing Skin Help!

    i do not believe that it is an actual uniform, missing the usual prefix
×