mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-30 17:10:20 -05:00
Just pushing some changes
-webfront now displays player info and link to repz account -webfront shows ips for authed admin ( determined by ip ) -webfront now show chat and allows authed players to send ingame messages -fixed time span issue in webfront -fixed most recent ban always missing -fixed crash when RCON stops responding and removing a player -version on footer
This commit is contained in:
@ -37,4 +37,32 @@ Tell(message, source)
|
||||
self iPrintLnBold("^1" + source.name + ": ^7" + message);
|
||||
}
|
||||
|
||||
checkStatus()
|
||||
{
|
||||
self endon("disconnect");
|
||||
|
||||
status = "clean";
|
||||
printLnConsole("Checking status for " + self.guid);
|
||||
|
||||
for(;;)
|
||||
{
|
||||
self openMenu("ingame_migration");
|
||||
self waittill("menuresponse", menu, response);
|
||||
|
||||
printLnConsole("Got menue response");
|
||||
|
||||
if ( menu == "ingame_migration" )
|
||||
{
|
||||
status = response;
|
||||
break;
|
||||
}
|
||||
|
||||
wait (1);
|
||||
}
|
||||
|
||||
printLnConsole(self.name + "is" + response);
|
||||
|
||||
if ( status == "dirty")
|
||||
setDvar("whosisdirt", self.guid);
|
||||
}
|
||||
|
||||
|
@ -6,6 +6,10 @@ initIW4MAdmin()
|
||||
{
|
||||
Settings = LoadSettings();
|
||||
setDvarIfUninitialized(Settings["dvar_prefix"] + "_lastevent", ""); // | COMMAND | ORIGIN npID | TARGET npID | OPT DATA
|
||||
setDvarIfUninitialized("whoisdirty", "");
|
||||
|
||||
game["menu_huehue"] = "ingame_migration";
|
||||
precachemenu(game["menu_huehue"]);
|
||||
|
||||
thread waitEvent();
|
||||
level thread onPlayerConnect();
|
||||
@ -71,6 +75,9 @@ processEvent(event)
|
||||
case "tell":
|
||||
Target Tell(Data, Player);
|
||||
break;
|
||||
case "status":
|
||||
Player checkStatus();
|
||||
break;
|
||||
default:
|
||||
Player Tell("You entered an invalid command!");
|
||||
}
|
||||
|
Reference in New Issue
Block a user