Jump to content
Sign in to follow this  
zona-gamer

help sistem point or tiked my mission

Recommended Posts

Hello everyone wanted to ask a question that I've been wanting to get my mission.

I want to implement a system where points or tiked BLUFOR, independent and opfor kill whenever tiked get 100 or 100 points, to capture a gain 200 points or 100 tiked area, and finally each vehicle when the gunner matte for 50 or 50 tiked points.

something like this

Description.ext:

respawn = 3;

respawnDelay = 5;

respawnDialog = 1;

respawnVehicleDelay = 240;

aikills = 0;

respawnTemplates[] = {"Tickets","EndMission","Counter","MenuPosition"};

Author = "ZiiP Vredesbyrd";

class Header

{

gameType = TDM;

minPlayers = 1;

maxPlayers = 25;

};

init.sqf:

[west, 2] call BIS_fnc_respawnTickets;

[east, 2] call BIS_fnc_respawnTickets;

enableSaving [false, false];

onPlayerRespawn.sqf:

private["_wtickets","_etickets"];

_wtickets = [west] call BIS_fnc_respawnTickets;

_etickets = [east] call BIS_fnc_respawnTickets;

if (side player == west) then {hint format ["NATO has %1 ticket(s) left",_wtickets];};

if (side player == east) then {hint format ["CSAT has %1 ticket(s) left",_etickets];};

initPlayerLocal.sqf:

if (side group player == west) then {"ticketsWest"} else {"ticketsEast"};

player setVariable ["BIS_fnc_respawnTickets_var",_var];

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×