Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ["_body", "_hisMoney", "_myMoney", "_killsH", "_test2", "_headShots", "_test","_playeridke","_humanity"];
- _body = _this select 3;
- // Add This to not let players pick up over 999999
- _hisMoney = _body getVariable ["cashMoney",0];
- if(_hisMoney > 999999) exitWith {
- cutText ["This player has to many coins you cant pick it up it will bug your cash", "PLAIN DOWN"];
- };
- // Add This to not let players pick up over 999999
- _PlayerNear = _body call dze_isnearest_player;
- if (_PlayerNear) exitWith {cutText [localize "str_pickup_limit_4", "PLAIN DOWN"]};
- _name = _body getVariable ["bodyName","unknown"];
- _hisMoney = _body getVariable ["cashMoney",0];
- _myMoney = player getVariable ["cashMoney",0];
- _myMoney = _myMoney + _hisMoney;
- _body setVariable ["cashMoney", 0 , true];
- player setVariable ["cashMoney", _myMoney , true];
- systemChat format ['You took %1 coins, ID says %2 !',_hisMoney,_name];
- sleep 2;
- _cid = player getVariable ["CharacterID","0"];
- _cashMoney = player getVariable ["cashMoney",0];
- if(_cashMoney > 0) then{
- } else {
- _cashMoney = 0;
- };
Advertisement
Add Comment
Please, Sign In to add comment