Начинающий
-
Автор темы
- #1
лп:
function C_BasePlayer:CanHit()
local Localplayer = EntityList.GetLocalPlayer()
local TraceInfo = Cheat.FireBullet(self, self:GetEyePosition(), Localplayer:GetEyePosition())
if (TraceInfo.damage > 0 and ((TraceInfo.trace.hit_entity and TraceInfo.trace.hit_entity:GetPlayer() == Localplayer) or false)) then
return true
end
return false
end
[neverlose] ["Script"]:1: attempt to index global 'C_BasePlayer' (a nil value)