Bonsoir, je voulais savoir comment faire pour que la police reçoit que 50% de la somme sur l'amande mise sur un joueur ?
Merci par avance
Merci par avance
#include "..\..\script_macros.hpp"
/*
File: fn_ticketPaid.sqf
Author: Bryan "Tonic" Boardwine
Description:
Verifies that the ticket was paid.
*/
params [
["_value",5,[0]],
["_unit",objNull,[objNull]],
["_cop",objNull,[objNull]]
];
if (isNull _unit || {!(_unit isEqualTo life_ticket_unit)}) exitWith {}; //NO
if (isNull _cop || {!(_cop isEqualTo player)}) exitWith {}; //Double NO
BANK = BANK + _value;
[1] call SOCK_fnc_updatePartial;
#include "..\..\script_macros.hpp"
/*
File: fn_ticketPaid.sqf
Author: Bryan "Tonic" Boardwine
Description:
Verifies that...
#include "..\..\script_macros.hpp"
/*
File: fn_ticketPaid.sqf
Author: Bryan "Tonic" Boardwine
Description:
Verifies that the ticket was paid.
*/
params [
["_value",5,[0]],
["_unit",objNull,[objNull]],
["_cop",objNull,[objNull]]
];
if (isNull _unit || {!(_unit isEqualTo life_ticket_unit)}) exitWith {}; //NO
if (isNull _cop || {!(_cop isEqualTo player)}) exitWith {}; //Double NO
BANK = BANK + _value;
[1] call SOCK_fnc_updatePartial;
#include "..\..\script_macros.hpp"
/*
File: fn_ticketPaid.sqf
Author: Bryan "Tonic" Boardwine
Description:
Verifies that the ticket was paid.
*/
params [
["_value",5,[0]],
["_unit",objNull,[objNull]],
["_cop",objNull,[objNull]]
];
if (isNull _unit || {!(_unit isEqualTo life_ticket_unit)}) exitWith {}; //NO
if (isNull _cop || {!(_cop isEqualTo player)}) exitWith {}; //Double NO
_value = _value * 0.5;
BANK = BANK + _value;
[1] call SOCK_fnc_updatePartial;
BANK + BANK + _value;
_value = _value * 0.5;