diff --git a/js/pages/playerInfo.js b/js/pages/playerInfo.js
index 8d4dc3f..edb3ecc 100644
--- a/js/pages/playerInfo.js
+++ b/js/pages/playerInfo.js
@@ -33,10 +33,17 @@ function PlayerInfoPage(params, container) {
'' +
'' +
'' +
- '
' +
+ '
' +
'' +
'' +
'
' +
+ '
' +
+ '' +
+ '' +
+ '' +
+ '' +
+ '' +
+ '
' +
'
' +
'' +
'';
@@ -138,6 +145,29 @@ function PlayerInfoPage(params, container) {
}
});
+ // ---- Quick rewards ----
+ document.getElementById('pi-scrap').addEventListener('click', function () {
+ Rcon.command('inventory.giveto ' + userid + ' scrap 500');
+ });
+
+ document.getElementById('pi-airdrop').addEventListener('click', function () {
+ Rcon.command('inventory.giveto ' + userid + ' supply.signal 1');
+ });
+
+ document.getElementById('pi-sniper').addEventListener('click', function () {
+ Rcon.command('inventory.giveto ' + userid + ' l96.weapon 1');
+ });
+
+ document.getElementById('pi-medkit').addEventListener('click', function () {
+ Rcon.command('inventory.giveto ' + userid + ' large.medkit 3');
+ });
+
+ document.getElementById('pi-lootreset').addEventListener('click', function () {
+ if (confirm('Respawn all loot crates and barrels across the entire map?')) {
+ Rcon.command('server.fill_groups');
+ }
+ });
+
document.getElementById('pi-mod').addEventListener('click', function () {
if (confirm('Promote ' + pname.textContent + ' to Moderator?')) {
Rcon.command('moderatorid ' + userid + ' ' + pname.textContent);