function Donaters:EnitGameMode()
GameRules:SendCustomMessage("donaters work",0,0)
end
function Donaters:OnNPCSpawned(data)
local npc = EntIndexToHScript(data.entindex)
if npc:IsRealHero() and npc.bFirstSpawned == nil then
npc.bFirstSpawned = true
local playerID = npc:GetPlayerID()
local steamID = PlayerResource:GetSteamAccountID(playerID)
local current_hero = npc:GetUnitName()
print( "Steam Community ID: " .. tostring( steamID ) )
print( "Current Hero: " .. tostring( current_hero ) )
local premium =
{
184963641
}
for _,premium_modifier in pairs(premium) do
if steamID == premium_modifier then
npc:AddNewModifier( npc, nil, "modifier_admin", {duration = -1})
end
end
if steamID == 184963641 then
npc:AddItemByName("item_roshan_testitem")
end
end
end