
All checks were successful
Build / Build (push) Successful in 28s
This commit removes the `tasks.json` file from the `.vscode` directory. Additionally, it enhances the documentation in `fnc_buyItem.sqf` and `fnc_buyVehicle.sqf` by providing clearer descriptions of item and vehicle types. The `fnc_handlePurchase.sqf` has also been updated to improve variable scoping for better code clarity.
107 lines
4.3 KiB
HTML
107 lines
4.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Forge Admin Panel</title>
|
|
<link rel="stylesheet" href="styles.css">
|
|
<script src="script.js" defer></script>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<div class="container">
|
|
<div class="header-content">
|
|
<h1>Admin Panel</h1>
|
|
<div class="admin-stats">
|
|
<div class="stat-item">
|
|
<span>👥</span>
|
|
<div>
|
|
<div>Online Players</div>
|
|
<div id="playerCount">0</div>
|
|
</div>
|
|
</div>
|
|
<div class="stat-item">
|
|
<span>👑</span>
|
|
<div>
|
|
<div>Staff Online</div>
|
|
<div id="staffCount">0</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header> <main class="container">
|
|
<div class="sections-grid">
|
|
<div class="action-sections">
|
|
<!-- Global Actions Section -->
|
|
<div class="admin-section">
|
|
<h2>Global Actions</h2>
|
|
<div class="form-group">
|
|
<label for="paydayAmount">Payday Amount</label>
|
|
<input type="number" id="paydayAmount" min="0" value="1000">
|
|
</div>
|
|
<button class="submit-btn" onclick="triggerPayday()">Trigger Payday</button>
|
|
</div>
|
|
|
|
<!-- Message System Section -->
|
|
<div class="admin-section">
|
|
<h2>Broadcast Message</h2>
|
|
<div class="form-group">
|
|
<label for="broadcastMessage">Message</label>
|
|
<input type="text" id="broadcastMessage" placeholder="Enter message to broadcast...">
|
|
</div>
|
|
<button class="submit-btn" onclick="broadcastMessage()">Send to All</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Player List Section -->
|
|
<div class="admin-section player-list-section">
|
|
<div class="search-bar">
|
|
<input type="text" id="playerSearch" class="search-input" placeholder="Search players...">
|
|
<div class="filter-bar">
|
|
<button class="filter-btn active" data-filter="all">All</button>
|
|
<button class="filter-btn" data-filter="online">Online</button>
|
|
<button class="filter-btn" data-filter="staff">Staff</button>
|
|
</div>
|
|
</div>
|
|
<div class="player-list" id="playerList">
|
|
<!-- Players will be populated dynamically -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<!-- Message Modal -->
|
|
<div id="messageModal" class="modal">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h2>Send Message</h2>
|
|
<button class="close-modal" onclick="closeMessageModal()">×</button>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="messageInput">Message to <span id="messagePlayerName"></span></label>
|
|
<input type="text" id="messageInput" placeholder="Enter your message...">
|
|
</div>
|
|
<button class="submit-btn" onclick="sendPlayerMessage()">Send Message</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Money Modal -->
|
|
<div id="moneyModal" class="modal">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h2>Modify Money</h2>
|
|
<button class="close-modal" onclick="closeMoneyModal()">×</button>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="moneyAmount">Amount</label>
|
|
<input type="number" id="moneyAmount" placeholder="Enter amount...">
|
|
</div>
|
|
<div class="player-actions">
|
|
<button class="action-btn promote-btn" onclick="giveMoney()">Give Money</button>
|
|
<button class="action-btn demote-btn" onclick="takeMoney()">Take Money</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |