Hmm glaube nicht das ich den umschreiben muss weil das orginal liegt hier das meinte ich damit aber schon ok!
Desweitern denke ich das jeder soviel English kann um das zuverstehen . Wir haben auch De server und fast alle in eng . Grund dafür is wir wollen nicht so enden wir ofc schreibst du nich in eng fliegste vom server . Fact is nunmal das die meisten nich Deutsch können .
AEGIS.chatCommands.roundtime = {};
function AEGIS.chatCommands.roundtime:func(player, chatMsg)
if (XIsAdmin(player)) then
local roundtime = string.match((chatMsg.text), "^!roundtime (%w+)");
if (not roundtime) then
XSendChatToTarget(nil, player, "Please specify Roundtime!");
else
local roundtimefinal = "x_time "..roundtime;
System.ExecuteCommand(roundtimefinal);
System.ExecuteCommand("x_say_info Server change: New Roundtime is "..roundtime.." Minutes");
XSendChatToTarget(nil, player, "New Roundtime: "..roundtime.." Minutes");
end
else
XSendBigCenterMessageToPlayer(player, "<font color=\"#ffffff\">Unknown command:</font><font color=\"#ff0000\"> roundtime</font>");
end
end
Un hier auch sehr hilfreich
-- ===============================================
-- ChatKommandos Spieler Stumm schalten
-- ===============================================
AEGIS.chatCommands.mute = {};
function AEGIS.chatCommands.mute:func(player, chatMsg)
if (XIsAdmin(player)) then
local mutefinal = string.match((chatMsg.text), "^!mute (%w+)");
if (not mutefinal) then
XSendChatToTarget(nil, player, "Please specify Playername");
return
end
local player = XSimplePlayerForName(mutefinal, "x_idontcare");
local sender = chatMsg.sender;
if (not player) then
XSendChatToTarget(nil, sender, "Playername not found!");
return
end
if (player==sender) then
XSendChatToTarget(nil, sender, "You cannot Mute yourself!");
return
end
if (XIsAdmin(player)) then
XSendChatToTarget(nil, sender, "You cannot Mute a Administrator!");
return
end
if (player.XIsMuted) then
player.XIsMuted = false;
XSendChatToTarget(nil, sender, "Player able to write again: "..player:GetName());
if(player.actor:GetSpectatorMode()~=0) then
XSendChatToTarget(nil, player, "You are able to write again!");
else
XSendBigCenterMessageToPlayer(player, "<font color=\"#ffffff\">You are able to </font><font color=\"#ff0000\">Write</font><font color=\"#ffffff\"> again!</font>");
Script.SetTimer( 2000,function() XSendBigCenterMessageToPlayer(player, "<font color=\"#ffffff\">You are able to </font><font color=\"#ff0000\">Write</font><font color=\"#ffffff\"> again!</font>"); end);
end
else
player.XIsMuted = true;
XSendChatToTarget(nil, sender, "Player is now Muted: "..player:GetName());
if(player.actor:GetSpectatorMode()~=0) then
XSendChatToTarget(nil, player, "You are now Muted!");
else
XSendBigCenterMessageToPlayer(player, "<font color=\"#ffffff\">You are now </font><font color=\"#ff0000\">Muted</font>");
Script.SetTimer( 2000,function() XSendBigCenterMessageToPlayer(player, "<font color=\"#ffffff\">You are now </font><font color=\"#ff0000\">Muted</font>"); end);
end
end
end
end
Gruss auch von Titan
Das sind die älteren versionen die wir bei uns nutzen werde morgen vllt noch ein paar posten