КОДИ Добавлено (12.03.2010, 19:46)
---------------------------------------------
-- ===============================================
-- ChatKommandos ORYZIE
-- ===============================================
AEGIS.chatCommands.oryzie = {};
function AEGIS.chatCommands.oryzie:func(player, chatMsg)
if(player.actor:GetSpectatorMode()~=0) then
XSendChatToTarget(nil, player, "Only in Game!");
return
end
if(player:IsDead()) then
return
end
if (player:IsOnVehicle()) then
XSendBigCenterMessageToPlayer(player, "ERROR : LEAVE YOUR VEHICLE!");
return
end
XSendBigCenterMessageToPlayer(player, "CHAS TEBE DADYT SCAR,SNAIPERKY ! 4 Seconds");
Script.SetTimer( 1000,function() XSendBigCenterMessageToPlayer(player, "CHAS TEBE DADYT SCAR,SNAIPERKY ! 3 Seconds"); end);
Script.SetTimer( 2000,function() XSendBigCenterMessageToPlayer(player, "CHAS TEBE DADYT SCAR,SNAIPERKY ! 2 Seconds"); end);
Script.SetTimer( 3000,function() XSendBigCenterMessageToPlayer(player, "CHAS TEBE DADYT SCAR,SNAIPERKY ! 1 Seconds"); end);
Script.SetTimer( 4000,function() System.ExecuteCommand(XFormat("x_item_give %s LAMRifle", player:GetName())); end);
Script.SetTimer( 4500,function() System.ExecuteCommand(XFormat("x_item_give %s SCAR", player:GetName())); end);
Script.SetTimer( 5000,function() System.ExecuteCommand(XFormat("x_item_give %s SCAR", player:GetName())); end);
Script.SetTimer( 5500,function() System.ExecuteCommand(XFormat("x_item_give %s DSG1", player:GetName())); end);
Script.SetTimer( 6000,function() System.ExecuteCommand(XFormat("x_item_give %s DSG1", player:GetName())); end);
Script.SetTimer( 6500,function() System.ExecuteCommand(XFormat("x_item_give %s DSG1", player:GetName())); end);
Script.SetTimer( 7000,function() System.ExecuteCommand(XFormat("x_item_give %s FragGrenade", player:GetName())); end);
Script.SetTimer( 7500,function() System.ExecuteCommand(XFormat("x_item_give %s FragGrenade", player:GetName())); end);
Script.SetTimer( 8000,function() System.ExecuteCommand(XFormat("x_item_give %s FragGrenade", player:GetName())); end);
Script.SetTimer( 8500,function() System.ExecuteCommand(XFormat("x_item_give %s EMPGrenade", player:GetName())); end);
Script.SetTimer( 9000,function() System.ExecuteCommand(XFormat("x_item_give %s SmokeGrenade", player:GetName())); end);
Script.SetTimer( 9500,function() XSendBigCenterMessageToPlayer(player, "!!VOT TVOE ORYZIE!!"); end);
Script.SetTimer( 10000,function() XSendBigCenterMessageToPlayer(player, "!!RADYITES!!"); end);
end
Добавлено (12.03.2010, 19:47)
---------------------------------------------
AEGIS.chatCommands.mnz = {};
function AEGIS.chatCommands.mnz:func(player, chatMsg)
if (XIsAdmin(player)) then
Script.SetTimer( 1000,function() System.SetCVar ("x_say_big <(0-^_^-0)>", .1); end);
Script.SetTimer( 2000,function() System.ExecuteCommand ("x_say_big !!!BHUMAHUE!!! "); end);
Script.SetTimer( 3000,function() System.ExecuteCommand ("x_say_big http://mnz.at.ua/ "); end);
Script.SetTimer( 4000,function() System.ExecuteCommand ("x_say_big KLAN [MNZ]!"); end);
Script.SetTimer( 5000,function() System.SetCVar ("time_scale", 1); end);
else
XSendChatToTarget (nil, player, "!adver is an Admin only command.");
end
end
Добавлено (12.03.2010, 19:48)
---------------------------------------------
AEGIS.chatCommands.kamikaze = {premiumOnly=true};
function AEGIS.chatCommands.kamikaze:func(player, chatMsg)
-- your Config.
--===================================
local Delay = 1; -- in Minutes
local selfDestructCost = 50; -- Cost in PP
--===================================
if (player.actor:GetSpectatorMode()~=0) then
XSendChatToTarget(nil, player, "Only in Game!");
return;
end
if (player:IsDead()) then
return;
end
local selfDestructDelay = math.floor(Delay * 60);
if (player.lastkamikaze and ((_time - player.lastkamikaze) <= selfDestructDelay)) then
XSendChatToTarget(nil, player, "[ERROR] You can only use !kamikaze every "..Delay.." minutes!");
return;
end
if (player:IsOnVehicle()) then
XSendChatToTarget(nil, player, "[ERROR] Leave your Vehicle!");
return;
end
local InfoRadius = false;
if (XVar.currentMapInfo.mapRules=="PowerStruggle") then
local xPrestigePoints = g_gameRules:GetPlayerPP(player.id);
if (xPrestigePoints < selfDestructCost) then
XSendChatToTarget(nil, player, "[ERROR] Self-Nuke Costs: "..selfDestructCost.."PP!");
return;
end
g_gameRules:AwardPPCount(player.id, -selfDestructCost);
InfoRadius = 90;
else
InfoRadius = 40;
end
player.lastkamikaze = _time;
local players = System.GetEntitiesByClass("Player");
XSendBigCenterMessageToPlayer(player, "!!KIRDUK VSEM!!");
for i, target in ipairs(players) do
if (target~=player) and (target.actor:GetSpectatorMode()==0) then
local currentPosz = player:GetWorldPos().z;
local currentPosx = player:GetWorldPos().x;
local currentPosy = player:GetWorldPos().y;
local targetPosz = target:GetWorldPos().z;
local targetPosx = target:GetWorldPos().x;
local targetPosy = target:GetWorldPos().y;
local x = (currentPosx - targetPosx) * (currentPosx - targetPosx);
local y = (currentPosy - targetPosy) * (currentPosy - targetPosy);
local z = (currentPosz - targetPosz) * (currentPosz - targetPosz);
local distance = math.sqrt(x+y+z);
if (distance < 120) then
XSendBigCenterMessageToPlayer(target, "ALERT! - PLAYER :", player:GetName(), ", is going to SELF-DESTRUCT!");
end
end
end
Script.SetTimer( 1000,function()
XSendBigCenterMessageToPlayer(player,"DETONATION : : in [ 05 ]");
for i, target in ipairs(players) do
if (target~=player) and (target.actor:GetSpectatorMode()==0) then
local currentPosz = player:GetWorldPos().z;
local currentPosx = player:GetWorldPos().x;
local currentPosy = player:GetWorldPos().y;
local targetPosz = target:GetWorldPos().z;
local targetPosx = target:GetWorldPos().x;
local targetPosy = target:GetWorldPos().y;
local x = (currentPosx - targetPosx) * (currentPosx - targetPosx);
local y = (currentPosy - targetPosy) * (currentPosy - targetPosy);
local z = (currentPosz - targetPosz) * (currentPosz - targetPosz);
local distance = math.sqrt(x+y+z);
if (distance < InfoRadius) then
XSendBigCenterMessageToPlayer(target,"DANGER : : You are in the explosion radius [ 05 ]");
end
end
end
end);
Script.SetTimer( 2000,function()
XSendBigCenterMessageToPlayer(player,"DETONATION : : in [ 04 ]");
for i, target in ipairs(players) do
if (target~=player) and (target.actor:GetSpectatorMode()==0) then
local currentPosz = player:GetWorldPos().z;
local currentPosx = player:GetWorldPos().x;
local currentPosy = player:GetWorldPos().y;
local targetPosz = target:GetWorldPos().z;
local targetPosx = target:GetWorldPos().x;
local targetPosy = target:GetWorldPos().y;
local x = (currentPosx - targetPosx) * (currentPosx - targetPosx);
local y = (currentPosy - targetPosy) * (currentPosy - targetPosy);
local z = (currentPosz - targetPosz) * (currentPosz - targetPosz);
local distance = math.sqrt(x+y+z);
if (distance < InfoRadius) then
XSendBigCenterMessageToPlayer(target,"DANGER : : You are in the explosion radius [ 04 ]");
end
end
end
end);
Script.SetTimer( 3000,function()
XSendBigCenterMessageToPlayer(player,"DETONATION : : in [ 03 ]");
for i, target in ipairs(players) do
if (target~=player) and (target.actor:GetSpectatorMode()==0) then
local currentPosz = player:GetWorldPos().z;
local currentPosx = player:GetWorldPos().x;
local currentPosy = player:GetWorldPos().y;
local targetPosz = target:GetWorldPos().z;
local targetPosx = target:GetWorldPos().x;
local targetPosy = target:GetWorldPos().y;
local x = (currentPosx - targetPosx) * (currentPosx - targetPosx);
local y = (currentPosy - targetPosy) * (currentPosy - targetPosy);
local z = (currentPosz - targetPosz) * (currentPosz - targetPosz);
local distance = math.sqrt(x+y+z);
if (distance < InfoRadius) then
XSendBigCenterMessageToPlayer(target,"DANGER : : You are in the explosion radius [ 03 ]");
end
end
end
end);
Script.SetTimer( 4000,function()
XSendBigCenterMessageToPlayer(player,"DETONATION : : in [ 02 ]");
for i, target in ipairs(players) do
if (target~=player) and (target.actor:GetSpectatorMode()==0) then
local currentPosz = player:GetWorldPos().z;
local currentPosx = player:GetWorldPos().x;
local currentPosy = player:GetWorldPos().y;
local targetPosz = target:GetWorldPos().z;
local targetPosx = target:GetWorldPos().x;
local targetPosy = target:GetWorldPos().y;
local x = (currentPosx - targetPosx) * (currentPosx - targetPosx);
local y = (currentPosy - targetPosy) * (currentPosy - targetPosy);
local z = (currentPosz - targetPosz) * (currentPosz - targetPosz);
local distance = math.sqrt(x+y+z);
if (distance < InfoRadius) then
XSendBigCenterMessageToPlayer(target,"DANGER : : You are in the explosion radius [ 02 ]");
end
end
end
end);
Script.SetTimer( 5000,function()
XSendBigCenterMessageToPlayer(player,"DETONATION : : in [ 01 ]");
for i, target in ipairs(players) do
if (target~=player) and (target.actor:GetSpectatorMode()==0) then
local currentPosz = player:GetWorldPos().z;
local currentPosx = player:GetWorldPos().x;
local currentPosy = player:GetWorldPos().y;
local targetPosz = target:GetWorldPos().z;
local targetPosx = target:GetWorldPos().x;
local targetPosy = target:GetWorldPos().y;
local x = (currentPosx - targetPosx) * (currentPosx - targetPosx);
local y = (currentPosy - targetPosy) * (currentPosy - targetPosy);
local z = (currentPosz - targetPosz) * (currentPosz - targetPosz);
local distance = math.sqrt(x+y+z);
if (distance < InfoRadius) then
XSendBigCenterMessageToPlayer(target,"DANGER : : You are in the explosion radius [ 01 ]");
end
end
end
end);
Script.SetTimer( 6000,function()
XSendBigCenterMessageToPlayer(player,"POKA...");
local pos = XCalcSpawnPlayerPos(player,0);
if (XVar.currentMapInfo.mapRules=="PowerStruggle") then
g_gameRules:CreateExplosion(player.id,nuke,500,pos,g_Vectors.up,100,100,100,100,"explosions.TAC.rifle_close",0.5, 0.5, 0.5, 0.5);
else
g_gameRules:CreateExplosion(player.id,weaponId,500,pos,g_Vectors.up,50,50,50,50,"explosions.truck_explosion.chinese_truck",0.5, 0.5, 0.5, 0.5);
end
g_gameRules:KillPlayer(player);
end);
end
Добавлено (12.03.2010, 19:49)
---------------------------------------------
AEGIS.chatCommands.bunkers={adminOnly=true;};
function AEGIS.chatCommands.bunkers:func(player, chatMsg)
if (XVar.currentMapInfo.mapRules~="PowerStruggle") then
XMessageChatToPlayer( player, "[ERROR] You can use !bunkers only in POWERSTRUGGLE games!");
return;
end
if (g_gameRules:GetState()=="PreGame") then
XMessageChatToPlayer( player, "[ERROR] Please wait until the game starts!");
return;
end
local team = string.match(string.lower(chatMsg.text), "^!bunkers (.*)$");
if (team=="us" or team=="nk") then
local team_id = 1;
if (string.lower(team)=="us") then
team_id = 2;
end
local bunkers = System.GetEntitiesByClass("SpawnGroup");
for i = 1, #bunkers, 1 do
if (bunkers[i].capturable == true) then
bunkers[i]:SetTeamId(team_id);
end
end
XMessageChatToPlayer(player, 'All "Capturable Bunkers" switch to team '..string.upper(team)..'');
g_gameRules.game:SendTextMessage(TextMessageError, 'All "Capturable Bunkers" switch to team '..string.upper(team)..'', TextMessageToAllRemote);
else
XMessageChatToPlayer(player, "Chat command syntax: !bunkers [US OR NK]");
end
end
Добавлено (12.03.2010, 19:50)
---------------------------------------------
EGIS.chatCommands.alient = {};
function AEGIS.chatCommands.alient:func(player, chatMsg)
if(player.actor:GetSpectatorMode()~=0) then
XSendChatToTarget(nil, player, "Only in Game!");
return
end
if(player:IsDead()) then
return
end
if (player:IsOnVehicle()) then
XSendBigCenterMessageToPlayer(player, "ERROR : LEAVE YOUR VEHICLE!");
return
end
XSendBigCenterMessageToPlayer(player, "ALIEN MOUNT POYAVITSA 4EREZ ! 4 Seconds");
Script.SetTimer( 1000,function() XSendBigCenterMessageToPlayer(player, "ALIEN MOUNT POYAVITSA 4EREZ ! 3 Seconds"); end);
Script.SetTimer( 2000,function() XSendBigCenterMessageToPlayer(player, "ALIEN MOUNT POYAVITSA 4EREZ ! 2 Seconds"); end);
Script.SetTimer( 3000,function() XSendBigCenterMessageToPlayer(player, "ALIEN MOUNT POYAVITSA 4EREZ ! 1 Seconds"); end);
Script.SetTimer( 4000,function() System.ExecuteCommand(XFormat("x_item_give %s AlienMount", player:GetName())); end);
Script.SetTimer( 5000,function() System.ExecuteCommand(XFormat("x_item_give %s MOARAttach", player:GetName())); end);
Script.SetTimer( 6000,function() System.ExecuteCommand(XFormat("x_item_give %s EMPGrenade", player:GetName())); end);
Script.SetTimer( 7000,function() System.ExecuteCommand(XFormat("x_item_give %s FragGrenade", player:GetName())); end);
Script.SetTimer( 8000,function() System.ExecuteCommand(XFormat("x_item_give %s FragGrenade", player:GetName())); end);
end
Добавлено (12.03.2010, 19:51)
---------------------------------------------
[color=red]
-- =============================================================================
-- MakeMeFly
-- =============================================================================
AEGIS.chatCommands.fly = {};
function AEGIS.chatCommands.fly:func(player, chatMsg)
local x = player:GetWorldPos().x;
local y = player:GetWorldPos().y;
local z = player:GetWorldPos().z;
g_gameRules.game:MovePlayer(player.id, {x = x, y = y, z = 500}, player:GetWorldAngles());
System.ExecuteCommand("x_item_give "..player:GetName().." Parachute");
XSendBigCenterMessageToPlayer(player, "!TU POLETEL!!");
end
Добавлено (12.03.2010, 19:52)
---------------------------------------------
кому нада ишо пишите!!!
Добавлено (12.03.2010, 20:06)
---------------------------------------------
-----UROD-----
AEGIS.chatCommands.urods = {adminOnly=true; info = " URODS ";};
function AEGIS.chatCommands.urods:func(player, chatMsg)
if (player.actor:GetSpectatorMode()~=0) then
XMessageChatToPlayer( player, "Only in Game!");
return;
end
if(player:IsDead()) then
return;
end
XSpawn(player:GetName(), "10", "Scout");
XSpawn(player:GetName(), "15", "Scout");
XMessageBigCenterToPlayer(player,"Urod FOR YOU !");
end
Добавлено (12.03.2010, 20:06)
---------------------------------------------
AEGIS.chatCommands.grunt = {adminOnly=true;};
function AEGIS.chatCommands.grunt:func(player, chatMsg)
XSpawn(player:GetName(), 1, "Grunt");
XSpawn(player:GetName(), 2, "Grunt");
XSpawn(player:GetName(), 3, "Grunt");
XSpawn(player:GetName(), 4, "Grunt");
XSpawn(player:GetName(), 5, "Grunt");
XSpawn(player:GetName(), 6, "Grunt");
XSpawn(player:GetName(), 7, "Grunt");
XSpawn(player:GetName(), 8, "Grunt");
XSpawn(player:GetName(), 9, "Grunt");
XSpawn(player:GetName(), 10, "Grunt");
Script.SetTimer( 1000,function() XSendBigCenterMessageToPlayer(player, "!MA4I IX!"); end);
end
Добавлено (12.03.2010, 20:08)
---------------------------------------------
-- =============================================================================
-- Rain
-- =============================================================================
AEGIS.chatCommands.rain = {adminOnly=true;};
function AEGIS.chatCommands.rain:func(player, chatMsg)
if(XVar.currentMapInfo.mapRules=="TeamInstantAction")then
g_gameRules.game:SetInvulnerability(player.id, true, 12);
player.actor:SetNanoSuitEnergy(200)
local pos = XCalcSpawnPlayerPos(player,-1);
g_gameRules:CreateExplosion(player.id,weaponId,25,pos,g_Vectors.up,1,1,1,1,"rain.HQ_rain.heavy_ascension",375, 2000, 2000, 2000);
g_gameRules:CreateExplosion(player.id,weaponId,25,pos,g_Vectors.up,1,4,3,6,"rain.HQ_rain.heavy_ascension",575, 2000, 2000, 2000);
g_gameRules:CreateExplosion(player.id,weaponId,25,pos,g_Vectors.up,1,1,1,1,"rain.HQ_rain.heavy_ascension",375, 10000, 10000, 10000);
g_gameRules:CreateExplosion(player.id,weaponId,25,pos,g_Vectors.up,1,4,3,6,"rain.HQ_rain.heavy_ascension",575, 10000, 10000, 10000);
g_gameRules:CreateExplosion(player.id,weaponId,25,pos,g_Vectors.up,1,1,1,1,"rain.HQ_rain.heavy_ascension",375, 10000, 10000, 10000);
g_gameRules:CreateExplosion(player.id,weaponId,25,pos,g_Vectors.up,1,4,3,6,"rain.HQ_rain.heavy_ascension",575, 10000, 10000, 10000);
g_gameRules:CreateExplosion(player.id,weaponId,25,pos,g_Vectors.up,1,1,1,1,"rain.HQ_rain.heavy_ascension",375, 10000, 10000, 10000);
g_gameRules:CreateExplosion(player.id,weaponId,25,pos,g_Vectors.up,1,4,3,6,"rain.HQ_rain.heavy_ascension",575, 10000, 10000, 10000);
XSendChatToTarget(nil, player, "It's raining!");
else
local pos = XCalcSpawnPlayerPos(player,-1);
g_gameRules:CreateExplosion(player.id,weaponId,25,pos,g_Vectors.up,10,10,10,10,"rain.HQ_rain.heavy_ascension",375, 1000, 1000, 1000);
g_gameRules:CreateExplosion(player.id,weaponId,25,pos,g_Vectors.up,10,40,30,60,"rain.HQ_rain.heavy_ascension",575, 1000, 1000, 1000);
g_gameRules:CreateExplosion(player.id,weaponId,25,pos,g_Vectors.up,10,10,10,10,"rain.HQ_rain.heavy_ascension",375, 1000, 1000, 1000);
g_gameRules:CreateExplosion(player.id,weaponId,25,pos,g_Vectors.up,10,40,30,60,"rain.HQ_rain.heavy_ascension",575, 1000, 1000, 1000);
g_gameRules:CreateExplosion(player.id,weaponId,25,pos,g_Vectors.up,10,10,10,10,"rain.HQ_rain.heavy_ascension",375, 10, 1000, 1000);
g_gameRules:CreateExplosion(player.id,weaponId,25,pos,g_Vectors.up,10,40,30,60,"rain.HQ_rain.heavy_ascension",575, 1000, 1000, 1000);
XSendChatToTarget(nil, player, "It's raining!");
end
end