Создай триггер с названием Kick Player, переведи его в текст, сотри текст и вставь этот:Code
function Trig_Kick_Player_Conditions takes nothing returns boolean
return SubString(GetEventPlayerChatString(), 0, 5) == "-kick"
endfunction
function Trig_Kick_Player_Actions takes nothing returns nothing
local string s = SubString(GetEventPlayerChatString(), 6, StringLength(GetEventPlayerChatString()))
local player p = Player(S2I(s) - 1)
if GetLocalPlayer() == p then
call DestroyEffect(AddSpecialEffect("Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl", 0., 0.))
endif
set p = null
endfunction
function InitTrig_Kick_Player takes nothing returns nothing
set gg_trg_Kick_Player = CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_Kick_Player, Player(1), "-kick", false)
call TriggerAddCondition(gg_trg_Kick_Player, Condition( function Trig_Kick_Player_Conditions))
call TriggerAddAction(gg_trg_Kick_Player, function Trig_Kick_Player_Actions)
endfunction
Чтобы кикнуть игрока, напиши -кик и его номер