English [License Plate] Notify a player that he does not have a license plate when unimpounding his car from the garage

  • Auteur de la discussion Auteur de la discussion Mathis
  • Date de début Date de début

Mathis

Admin
Membre du personnel
29/12/19
503
16
48
1 100
Welcome to this tutorial that will allow you to notify a player that he does not have a license plate when unimpounding his car from the garage.
This tutorial is a follow to the request for help from Zomblard Zomblard.

Let's go !

In your life_server/Functions/Systems/fn_spawnVehicle.sqf, replace this line :
Code:
Développer Réduire Copier
[_vid,_pid,_vehicle] remoteExec ["max_immat_fnc_initVehicleImmatriculation",2];
by :
Code:
Développer Réduire Copier
[_vid,_pid,_vehicle,_unit] remoteExec ["max_immat_fnc_initVehicleImmatriculation",2];

In your @The_Programmer/addons/license_plate/server/fn_initVehicleImmatriculation.sqf, replace these lines :
Code:
Développer Réduire Copier
params [
    ["_vid",-1,[0]],
    ["_pid","",[""]],
    ["_vehicle",objNull,[objNull]]
];
by :
Code:
Développer Réduire Copier
params [
    ["_vid",-1,[0]],
    ["_pid","",[""]],
    ["_vehicle",objNull,[objNull]],
    ["_unit",-1,[0]]
];

Always in the same file, in the condition :
Code:
Développer Réduire Copier
if (_immatriculation == "0") then {
You can add :
Code:
Développer Réduire Copier
[1,"ATTENTION : Votre véhicule n'est pas immatriculé. Vous encourez une amende de 500€ !"] remoteExecCall ["life_fnc_broadcast",_unit];

Here we go !

Sincerely,
Forum Manager - Mathis
 
Activité
Pour l'instant, il n'y a personne ici