Guten Tag,
ich möchte für die Medics das Ticketsystem der Cops einfügen, (mit anderen texten und so)
bisher klappt alles, aber ich hab grade probleme bei der fn_ticketPay.sqf
Code: fn_ticketPay.sqf
#include "..\..\script_macros.hpp"
/*
File: fn_ticketPay.sqf
Author: Bryan "Tonic" Boardwine
Description:
Pays the ticket.
*/
if (isNil "life_ticket_val" || isNil "life_ticket_cop") exitWith {};
if (CASH < life_ticket_val) exitWith {
if (BANK < life_ticket_val) exitWith {
hint localize "STR_Cop_Ticket_NotEnough";
[1,"STR_Cop_Ticket_NotEnoughNOTF",true,[profileName]] remoteExecCall ["life_fnc_broadcast",life_ticket_cop];
closeDialog 0;
};
hint format [localize "STR_Cop_Ticket_Paid",[life_ticket_val] call life_fnc_numberText];
BANK = BANK - life_ticket_val;
[1] call SOCK_fnc_updatePartial;
life_ticket_paid = true;
[0,"STR_Cop_Ticket_PaidNOTF",true,[profileName,[life_ticket_val] call life_fnc_numberText]] remoteExecCall ["life_fnc_broadcast",west];
[1,"STR_Cop_Ticket_PaidNOTF_2",true,[profileName]] remoteExecCall ["life_fnc_broadcast",life_ticket_cop];
[life_ticket_val,player,life_ticket_cop] remoteExecCall ["life_fnc_ticketPaid",life_ticket_cop];
if (life_HC_isActive) then {
[getPlayerUID player] remoteExecCall ["HC_fnc_wantedRemove",HC_Life];
} else {
[getPlayerUID player] remoteExecCall ["life_fnc_wantedRemove",RSERV];
};
closeDialog 0;
};
CASH = CASH - life_ticket_val;
[] call life_fnc_hudUpdate;
[0] call SOCK_fnc_updatePartial;
life_ticket_paid = true;
if (life_HC_isActive) then {
[getPlayerUID player] remoteExecCall ["HC_fnc_wantedRemove",HC_Life];
} else {
[getPlayerUID player] remoteExecCall ["life_fnc_wantedRemove",RSERV];
};
[0,"STR_Cop_Ticket_PaidNOTF",true,[profileName,[life_ticket_val] call life_fnc_numberText]] remoteExecCall ["life_fnc_broadcast",west];
closeDialog 0;
[1,"STR_Cop_Ticket_PaidNOTF_2",true,[profileName]] remoteExecCall ["life_fnc_broadcast",life_ticket_cop];
[life_ticket_val,player,life_ticket_cop] remoteExecCall ["life_fnc_ticketPaid",life_ticket_cop];
Alles anzeigen
was muss ich da ändern damit das für medics ist?
gehe mal von aus dass das life_ticket_cop auch mit geändert werden muss, aber wie und vorallem wo definiere ich das life_ticket_cop bzw. med