Questions freeze joueurs

  • Initiateur de la discussion
Juan Camorra

Juan Camorra

Geek
Messages
94
Score réaction
10
Points
65
Bonjour, je souhaiterais savoir quel est l'addon pour pouvoir freeze les joueurs en l'air comme avec un props ( click droit en laissant appuyer sur click gauche ) ! Merci d'avance.
 
A!ex

A!ex

Geek suprême
Messages
521
Score réaction
87
Points
140
Go worckshop et cherche "Physgun freeze" ou un truck du genre ;)
 
Yoh Sambre ♪

Yoh Sambre ♪

Shaman Fou
Messages
16 288
Score réaction
9 687
Points
1 845
installe ce code dans un fichier situer dans lua/autorun/server

Code:
function FGod(ply, dmginfo) if(ply:GetNWInt("FGod") == 1) then dmginfo:ScaleDamage(0) end
end
hook.Add("EntityTakeDamage", "FGod", FGod)
affected_plys = {}
hook.Add("PhysgunDrop", "ply_physgunfreeze", function(pl, ent) hook.Remove("PhysgunDrop", "ulxPlayerDrop") ent._physgunned = false if(ent:IsPlayer()) then ent:SetMoveType(pl:KeyDown(IN_ATTACK2) and MOVETYPE_NOCLIP or MOVETYPE_WALK) if(pl:KeyDown(IN_ATTACK2)) then ent:Freeze(true) ent:SetNWInt("FGod", 1) table.insert(affected_plys, ent) else ent:Freeze(false) ent:SetNWInt("FGod", 0) ent:DisallowSpawning(false) table.insert(affected_plys, ent) end if SERVER then if !ent:Alive() then ent:Spawn() self:PlayerSpawn(ent) ent:SetPos(pl:GetEyeTrace().HitPos) end end return --self.BaseClass:PhysgunDrop(pl , ent) end
end)
hook.Add("PhysgunPickup", "ply_physgunned", function(pl, ent) ent._physgunned = true
end)
function playerDies(pl, weapon, killer) if(pl._physgunned) then return false else return true end
end
hook.Add("CanPlayerSuicide", "playerNoDeath", playerDies)
 
  • Banni
lampoule

lampoule

Psychopathe
Messages
1 016
Score réaction
332
Points
300
Tient https://steamcommunity.com/sharedfiles/filedetails/?id=1154600561
 
  • Initiateur de la discussion
Juan Camorra

Juan Camorra

Geek
Messages
94
Score réaction
10
Points
65
lampoule à dit:
Tient https://steamcommunity.com/sharedfiles/filedetails/?id=1154600561
Yoh Sambre ♪ à dit:
installe ce code dans un fichier situer dans lua/autorun/server

Code:
function FGod(ply, dmginfo) if(ply:GetNWInt("FGod") == 1) then dmginfo:ScaleDamage(0) end
end
hook.Add("EntityTakeDamage", "FGod", FGod)
affected_plys = {}
hook.Add("PhysgunDrop", "ply_physgunfreeze", function(pl, ent) hook.Remove("PhysgunDrop", "ulxPlayerDrop") ent._physgunned = false if(ent:IsPlayer()) then ent:SetMoveType(pl:KeyDown(IN_ATTACK2) and MOVETYPE_NOCLIP or MOVETYPE_WALK) if(pl:KeyDown(IN_ATTACK2)) then ent:Freeze(true) ent:SetNWInt("FGod", 1) table.insert(affected_plys, ent) else ent:Freeze(false) ent:SetNWInt("FGod", 0) ent:DisallowSpawning(false) table.insert(affected_plys, ent) end if SERVER then if !ent:Alive() then ent:Spawn() self:PlayerSpawn(ent) ent:SetPos(pl:GetEyeTrace().HitPos) end end return --self.BaseClass:PhysgunDrop(pl , ent) end
end)
hook.Add("PhysgunPickup", "ply_physgunned", function(pl, ent) ent._physgunned = true
end)
function playerDies(pl, weapon, killer) if(pl._physgunned) then return false else return true end
end
hook.Add("CanPlayerSuicide", "playerNoDeath", playerDies)
Merci beaucoup.
 
  • J'aime
Réactions: lampoule et Yoh Sambre ♪
Discord d'entraide
Rejoignz-nous sur Discord