Aller au contenu

vfrz

Modérateur global
  • Compteur de contenus

    1 332
  • Inscription

  • Dernière visite

  • Days Won

    22

Tout ce qui a été posté par vfrz

  1. vfrz

    Admin Menu 3.1.4.8

    Ok je te donnerais ça quand j'aurais le menu admin Bientôt il y aura un sous forum spécial pour les tutos si Azad le fait x)
  2. Ça marche pour toutes les versions ?
  3. Merci pour le partage
  4. Bonjour, Voici un tutoriel pour activer Zeus sur son serveur Altis Life Crédit : Archangel_za pour son tutoriel sur altisliferpg.com et EdgeKiller pour la traduction (en cours...). - 1 - Dans votre fichier "core\init.sqf", vous devez ajouter une "case" pour le mode Zeus, donc en dessous de ceci : switch (playerSide) do { case west: { _handle = [] spawn life_fnc_initCop; waitUntil {scriptDone _handle}; }; case civilian: { //Initialize Civilian Settings _handle = [] spawn life_fnc_initCiv; waitUntil {scriptDone _handle}; }; case independent: { //Initialize Medics and blah _handle = [] spawn life_fnc_initMedic; waitUntil {scriptDone _handle}; }; Ajoutez ceci : case sideLogic: { _handle = [] spawn life_fnc_initZeus; waitUntil {scriptDone _handle}; }; Avant la fin du switch. - 2 - Créer un fichier dans le dossier core nommé "fn_initZeus.sqf" et mettez ceci à l'intérieur : /* File: fn_initZeus.sqf Author: John "Paratus" VanderZwet Description: Zeus Initialization file. */ player addRating 9999999; waitUntil {!(isNull (findDisplay 46))}; [] spawn life_fnc_copMarkers; if(life_adminlevel < 2) exitWith { endMission "Loser"; }; - 3 - Ouvrez le fichier "functions.h" et en dessous de : class Master_Directory { Ajoutez : class initZeus {}; - 4 - Allez dans l'éditeur: 1 • Ajoutez un module (Double clique) 2 • Pour la catégorie mettez "Zeus" 3 • Pour le module mettez "GameMaster" Les paramètres doivent être comme sur l'image suivante : Désormais Zeus est activé sur votre serveur Altis Life ! Have fun ! PS : N'oubliez pas de vous connectez en tant qu'administrateur en tapant ceci dans le chat : #login <Admin Password>
  5. Voici la liste des numéros correspondants aux touches, source : altisliferpg.com (midgetgrimm) ESC = 1 F1 = 59 F2 = 60 F3 = 61 F4 = 62 F5 = 63 F6 = 64 F7 = 65 F8 = 66 F9 = 67 F10 = 68 F11 = 87 F12 = 88 PRINT = 183 SCROLL = 70 PAUSE = 197 ^ = 41 1 = 2 2 = 3 3 = 4 4 = 5 5 = 6 6 = 7 7 = 8 8 = 9 9 = 10 0 = 11 ß = 12 ´ = 13 Ü = 26 Ö = 39 Ä = 40 # = 43 < = 86 , = 51 . = 52 - = 53 + = NOT DEFINED POS1 = 199 TAB = 15 ENTER = 28 DELETE = 211 BACKSPACE = 14 INSERT = 210 END = 207 PAGEUP = 201 PAGEDOWN = 209 CAPS = 58 A = 30 B = 48 C = 46 D = 32 E = 18 F = 33 G = 34 H = 35 I = 23 J = 36 K = 37 L = 38 M = 50 N = 49 O = 24 P = 25 Q = 16 U = 22 R = 19 S = 31 T = 20 V = 47 W = 17 X = 45 Y = 44 Z = 21 SHIFTL = 42 SHIFTR = 54 UP = 200 DOWN = 208 LEFT = 203 RIGHT = 205 NUM_0 = 82 NUM_1 = 79 NUM_2 = 80 NUM_3 = 81 NUM_4 = 75 NUM_5 = 76 NUM_6 = 77 NUM_7 = 71 NUM_8 = 72 NUM_9 = 73 NUM_+ = 78 NUM = 69 NUM_/ = 181 NUM_* = 55 NUM_- = 74 NUM_, = 83 NUM_ENTER = 156 STRGL = 29 STRGR = 157 WINL = 220 WINR = 219 ALT = 56 SPACE = 57 ALTGR = 184 APP = 221
  6. vfrz

    Admin Menu 3.1.4.8

    Merci
  7. Merci pour le tutoriel !
  8. Pas de problème, c'est ton choix et ta vie. Bonne continuation
  9. vfrz

    Admin Menu 3.1.4.8

    Merci pour ce tuto, possible d'avoir une screenshot ?
  10. vfrz

    Ajouter la bourse !

    Ben ouais, j'ai pas trouver de tutoriel en francais, donc je l'ai traduit moi même
  11. Tu veux pas écrire les sources en blanc tant que tu y es ? x)
  12. vfrz

    Bleu vs Rouge

    +1 bleu !
  13. Bonne idée, en plus ça ne nécessite pas réellement d'administration donc c'est simple non ?
  14. vfrz

    [Candidature] Eloha

    Bonsoir ! Je suis du même avis que Soulalex. Bonne chance Eloha
  15. Bonjour à tous, aujourd'hui je vais traduire un tutoriel pour ajouter la bourse, source : altisliferpg.com 1 - Allez dans votre functions.h et ajouter ceci à la fin : class Market{ file = "core\market"; class openMarketView; class refreshMarketView; class marketShortView; class marketBuy; class marketSell; class marketGetBuyPrice; class marketGetSellPrice; class marketconfiguration; class marketReset; class marketChange; class marketGetRow; class marketGetPriceRow; class marketSetPriceRow;}; Dans le fichier functions.h à nouveau, ajouter ceci en dessous de la class functions : class Functions{ file = "core\functions"; class randomRound {}; // <--------- add this}; 2 - Allez dans le dossier Dialog et copier les 2 fichiers disponibles dans le .zip et ouvrer votre MasterHandler.h et ajouter ceci : #include "common_EditorWrapper.hpp"#include "market.hpp" 3 - Ouvrez votre fn_virt_sell.sqf dans core/shops Ajoutez à private ceci ["_marketprice"]; Comme ceci : private["_type","_index","_price","_var","_amount","_name","_marketprice"]; Maintenant trouver cette ligne : _price = (__GETC__(sell_array) select _index) select 1;_var = [_type,0] call life_fnc_varHandle; Ajoutez ceci en dessous : _marketprice = [_type] call life_fnc_marketGetSellPrice;if(_marketprice != -1) then{ _price = _marketprice;}; Trouvez cette ligne : life_cash = life_cash + _price; Ajoutez ceci en dessous : if(_marketprice != -1) then { [_type, _amount] spawn { sleep 120; [_this select 0,_this select 1] call life_fnc_marketSell; };}; 4- Fermer le fichier et ouvrer le fichier fn_virt_update.sqf dans le même dossier Ajoutez à private ceci ["_marketprice"]; Comme ceci : private["_type","_index","_price","_var","_amount","_name","_marketprice"]; Maintenant trouvez cette ligne : _price = (__GETC__(buy_array) select _index) select 1; Ajoutez ceci en dessous: marketprice = [_x] call life_fnc_marketGetBuyPrice;if(_marketprice != -1) then{ _price = _marketprice;}; A la fin du fichier ajoutez ceci : //Call short view here[_shop_data select 1] spawn life_fnc_marketShortView; Comme ceci : if(_val > 0) then { _gear_list lbAdd format["%1x %2",_val,_name]; _gear_list lbSetData [(lbSize _gear_list)-1,_x]; };} foreach (_shop_data select 1); //Call short view here // this its the new line to add[_shop_data select 1] spawn life_fnc_marketShortView; // this its the new line to add 5 - Fermer le fichier et ouvrez fn_virt_buy.sqf aussi dans le même dossier Ajoutez à private ceci : "_marketprice" Comme ceci : private["_type","_price","_amount","_diff","_name","_hideout","_marketprice"]; Trouvez cette ligne : _amount = ctrlText 2404; Ajoutez ceci en dessous: _marketprice = [_type] call life_fnc_marketGetBuyPrice;if(_marketprice != -1) then{ _price = _marketprice;}; Trouvez cette ligne : __SUB__(life_cash,(_price * _amount)); Ajoutez ceci en dessous: if(_marketprice != -1) then { //##94 [_type, _amount] spawn { sleep 120; [_this select 0,_this select 1] call life_fnc_marketBuy; }; }; 6 - Ouvrer le fichier dialog\player_inv.hpp En dessous de ceci : class ButtonSyncData : life_RscButtonMenu { idc = -1; //shortcuts[] = {0x00050000 + 2}; text = "$STR_PM_SyncData"; onButtonClick = "[] call SOCK_fnc_syncData;"; x = 0.1; y = 0.805; w = (6.25 / 40); h = (1 / 25);}; Ajoutez ceci : class ButtonMarket : Life_RscButtonMenu { idc = -1; text = "Bourse"; onButtonClick = "[] spawn life_fnc_openMarketView;"; //x = 0.26 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH)); x = 0.26 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH)); y = 0.805; w = (6.25 / 40); h = (1 / 25);}; Ouvrez le fichier init.sqf dans VOTRENOMDEMISSION\init.sqf et en dessous de : [] execVM "briefing.sqf"; //Load Briefing[] execVM "KRON_Strings.sqf"; Ajoutez ça : if(isDedicated && isNil("life_market_prices")) then{[] call life_fnc_marketconfiguration;diag_log "Market prices generated!"; "life_market_prices" addPublicVariableEventHandler{diag_log format["Market prices updated! %1", _this select 1];}; //Start server fsm[] execFSM "core\fsm\server.fsm";diag_log "Server FSM executed";}; Et pour la dernière étape allez dans core\fsm and déplacer le fichier server.fsm dispo dans le .zip Désormais vous avez votre système de bourse, enjoy Pour le kick par BattlEye, il suffit d'ajouter ces lignes dans Battleye\publicvariable.txt : 1 "" !="life_HC_isActive" !="HC_UID"7 "" !="life_market_shortnames" !="life_fnc_MP_packet" !="BIS_fnc_MP_packet" !="JipTimeNow" !="life_HC_isActive" !="HC_UID" !="life_gang_list" !="bank_addfunds" !="life_market_prices" !="IL_SetMass" !="IL_SetScore" !="IL_SetDir" !="life_market_resources" !="bis_fnc_execvm" !="Life_fnc_execvm" Maintenant pour la version 3.1.4.6+ changez le fichier fn_virt_sell.sqf danscore/shops remplacez le par ceci : #include <macro.h>/* File: fn_virt_sell.sqf Author: Bryan "Tonic" Boardwine Description: Sell a virtual item to the store / shop*/ private["_type","_index","_price","_var","_amount","_name","_marketprice"];if((lbCurSel 2402) == -1) exitWith {};_type = lbData[2402,(lbCurSel 2402)];_index = [_type,__GETC__(sell_array)] call fnc_index;if(_index == -1) exitWith {};_price = (__GETC__(sell_array) select _index) select 1;_var = [_type,0] call life_fnc_varHandle;_marketprice = [_type] call life_fnc_marketGetSellPrice;if(_marketprice != -1) then{ _price = _marketprice;}; _amount = ctrlText 2405;if(!([_amount] call fnc_isnumber)) exitWith {hint localize "STR_Shop_Virt_NoNum";};_amount = parseNumber (_amount);if(_amount > (missionNameSpace getVariable _var)) exitWith {hint localize "STR_Shop_Virt_NotEnough"}; _price = (_price * _amount);_name = [_var] call life_fnc_vartostr;if(([false,_type,_amount] call life_fnc_handleInv)) then{ hint format[localize "STR_Shop_Virt_SellItem",_amount,_name,[_price] call life_fnc_numberText]; life_cash = life_cash + _price; if(_marketprice != -1) then { [_type, _amount] spawn { sleep 120; [_this select 0,_this select 1] call life_fnc_marketSell; }; }; [] call life_fnc_virt_update; }; if(life_shop_type == "heroin") then{ private["_array","_ind","_val"]; _array = life_shop_npc getVariable["sellers",[]]; _ind = [getPlayerUID player,_array] call fnc_index; if(_ind != -1) then { _val = (_array select _ind) select 2; _val = _val + _price; _array set[_ind,[getPlayerUID player,profileName,_val]]; life_shop_npc setVariable["sellers",_array,true]; } else { _array set[count _array,[getPlayerUID player,profileName,_price]]; life_shop_npc setVariable["sellers",_array,true]; };}; Merci à : Linxy pour son aide Touts les fichiers nécessaire (.zip) : https://mega.co.nz/#!fZFQjJbB!OGIlZTYFW-ZT-czIiOE8k6GPBFa056TcJTR8u9T6jS8 Patch 3.1.4.8: Copiez les fichiers suivant spécifiques : fn.Virt_sell.sqf #include <macro.h>/* File: fn_virt_sell.sqf Author: Bryan "Tonic" Boardwine Description: Sell a virtual item to the store / shop*/private["_type","_index","_price","_var","_amount","_name","_marketprice"];if((lbCurSel 2402) == -1) exitWith {};_type = lbData[2402,(lbCurSel 2402)];_index = [_type,__GETC__(sell_array)] call TON_fnc_index;if(_index == -1) exitWith {};_price = (__GETC__(sell_array) select _index) select 1;_var = [_type,0] call life_fnc_varHandle;////Marktsystem Anfang////_marketprice = [_type] call life_fnc_marketGetSellPrice;if(_marketprice != -1) then{ _price = _marketprice;};////Marktsystem Ende//// _amount = ctrlText 2405;if(!([_amount] call fnc_isnumber)) exitWith {hint "You didn't enter an actual number";};_amount = parseNumber (_amount);if(_amount > (missionNameSpace getVariable _var)) exitWith {hint "You don't have that many items to sell!"}; _price = (_price * _amount);_name = [_var] call life_fnc_vartostr;if(([false,_type,_amount] call life_fnc_handleInv)) then{ hint format["You sold %1 %2 for $%3",_amount,_name,[_price] call life_fnc_numberText]; life_cash = life_cash + _price; ////Marktsystem Anfang//// if(_marketprice != -1) then { [_type, _amount] spawn { sleep 120; [_this select 0,_this select 1] call life_fnc_marketSell; }; ////Marktsystem Ende//// }; [] call life_fnc_virt_update; }; if(life_shop_type == "heroin") then{ private["_array","_ind","_val"]; _array = life_shop_npc getVariable["sellers",[]]; _ind = [getPlayerUID player,_array] call TON_fnc_index; if(_ind != -1) then { _val = (_array select _ind) select 2; _val = _val + _price; _array set[_ind,[getPlayerUID player,profileName,_val]]; life_shop_npc setVariable["sellers",_array,true]; } else { _array pushBack _array,[getPlayerUID player,profileName,_price]]; life_shop_npc setVariable["sellers",_array,true]; };}; fn.virt_update.sqf #include <macro.h>/* File: fn_virt_update.sqf Author: Bryan "Tonic" Boardwine Description: Update and fill the virtual shop menu.*/private["_display","_item_list","_gear_list","_shop_data","_name","_price","_marketprice"];disableSerialization; //Setup control vars._display = findDisplay 2400;_item_list = _display displayCtrl 2401;_gear_list = _display displayCtrl 2402; //Purge listlbClear _item_list;lbClear _gear_list; _shop_data = [life_shop_type] call life_fnc_virt_shops;ctrlSetText[2403,format["%1", _shop_data select 0]]; { _name = [([_x,0] call life_fnc_varHandle)] call life_fnc_vartostr; _index = [_x,__GETC__(buy_array)] call TON_fnc_index; if(_index != -1) then { _price = (__GETC__(buy_array) select _index) select 1; ////Marktsystem Anfang//// _marketprice = [_x] call life_fnc_marketGetBuyPrice; if(_marketprice != -1) then { _price = _marketprice; }; ////Marktsystem Ende//// _item_list lbAdd format["%1 ($%2)",_name,[_price] call life_fnc_numberText]; _item_list lbSetData [(lbSize _item_list)-1,_x]; _item_list lbSetValue [(lbSize _item_list)-1,_price]; };} foreach (_shop_data select 1); { _var = [_x,0] call life_fnc_varHandle; _val = missionNameSpace getVariable _var; _name = [_var] call life_fnc_vartostr; if(_val > 0) then { _gear_list lbAdd format["%1x %2",_val,_name]; _gear_list lbSetData [(lbSize _gear_list)-1,_x]; };} foreach (_shop_data select 1); //Call short view here[_shop_data select 1] spawn life_fnc_marketShortView; And a little exemple for fix the xxxxxx in the market: ["apple", 100, 50, 150, 4, 2, [ ["peach",1] <------- no coma ] ], and for long line["cement", 2250, 250, 4250, 4, 2, [ ["diamondc",1], <------- coma ["oilp",1], <------- coma ["iron_r",1], <------- coma ["copper_r",1], <------- coma ["salt_r",1], <------- coma ["glass",1] <------- no coma ] ], Last items in your configurationmarket ["heroinp", 7000, 3000, 10000, 4, 4, [ ["marijuana",1], <------- coma ["turtle",1], <------- coma ["cocainep",1] <------- no coma ] ] <------- no coma Crédit : _Fuzz pour le tutoriel sur altisliferpg.com et EdgeKiller pour la traduction !
  16. vfrz

    Grades

    Message automatique Le sujet a été déplacé de « Émulation → Arma III » à « Émulation → Arma III → Aide / Support → Problèmes résolus ».
  17. Message automatique Le sujet a été déplacé de « Émulation → Arma III » à « Émulation → Arma III → Aide / Support → Problèmes résolus ».
  18. vfrz

    [Aide] Uniforme de Médic

    Message automatique Le sujet a été déplacé de « Émulation → Arma III » à « Émulation → Arma III → Aide / Support ».
  19. Message automatique Le sujet a été déplacé de « Émulation → Arma III » à « Émulation → Arma III → Aide / Support → Problèmes résolus ».
  20. Message automatique Le sujet a été déplacé de « Émulation → Arma III » à « Émulation → Arma III → Aide / Support ».
  21. Message automatique Le sujet a été déplacé de « Émulation → Arma III » à « Émulation → Arma III → Aide / Support ».
  22. J'ai pas bien compris, et elles serviront à quoi ces variables ?
  23. Bienvenue, tu devrais t'y plaire normalement
  24. J'essayerais de faire un tutoriel bientôt
  25. Je savais pas qu'on pouvait chanter sur Twitter x)
×
×
  • Créer...