Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\script_macros.hpp"
- private ["_nbr","_zone1","_zone2","_zone3","_gangPaycheck"];
- _nbr = 0;
- _gangPaycheck = 0;
- _zone1 = nearestBuilding (getMarkerPos "gang_flag_1");
- _zone2 = nearestBuilding (getMarkerPos "gang_flag_2");
- _zone3 = nearestBuilding (getMarkerPos "gang_flag_3");
- // Zone de gang 1
- if (!isNil (_zone1 getVariable ["gangOwner",grpNull])) then
- {
- if ((_zone1 getVariable ["gangOwner",grpNull]) == (group player)) then
- {
- _gangPaycheck = _gangPaycheck + 10000;
- _nbr = _nbr + 1;
- };
- };
- // Zone de gang 2
- if (!isNil (_zone2 getVariable ["gangOwner",grpNull])) then
- {
- if ((_zone2 getVariable ["gangOwner",grpNull]) == (group player)) then
- {
- _gangPaycheck = _gangPaycheck + 10000;
- _nbr = _nbr + 1;
- };
- };
- // Zone de gang 3
- if (!isNil (_zone3 getVariable ["gangOwner",grpNull])) then
- {
- if ((_zone3 getVariable["gangOwner",grpNull]) == (group player)) then
- {
- _gangPaycheck = _gangPaycheck + 10000;
- _nbr = _nbr + 1;
- };
- };
- switch (_nbr) do
- {
- case 0: {_gangPaycheck = 0};
- case 1: {_gangPaycheck = _gangPaycheck + 5000;};
- case 2: {_gangPaycheck = _gangPaycheck + 10000;};
- case 3: {_gangPaycheck = _gangPaycheck + 15000;};
- };
- hint format ["Ton gang possède %1 zones de gang tu as donc gagné %2 €", _nbr, _gangPaycheck];
- BANK = BANK + _gangPaycheck;
- sleep 60;
- [] spawn life_fnc_gangsalaire;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement