Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
"TEAM_XYZ"
}
local TeamTbl = {}
hook.Add("Initialize", "convertTeamIds", function()
for index, teamStr in ipairs(configTable) do
local id = _G[teamStr]
if id then
TeamTbl[id] = true
end
end
end)
hook.Add("PlayerSpawn", "Player_Spawn_Give_Thing", function(ply)
if TeamTbl[ply:Team()] then
local ent = ents.Create("starwars_jetpack") --insert any equipable entity here
ent:SetSlotName( ent:GetClass() )
ent:SetPos(ply:GetPos())
ent:SetOwner(ply)
ent:Spawn()
ent:Activate()
ent:Use( ply, ply, USE_ON, -1 )
end
end)