Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(SinglePlayer()) then
- if(SERVER) then
- hook.Add("PlayerFootstep","fixclfootstep",function(activator,pos,foot,snd,vol,rep)
- net.Start("footstep")
- net.WriteEntity(activator)
- net.WriteVector(pos)
- net.WriteUInt(foot,1)
- net.WriteString(snd)
- net.WriteFloat(vol)
- net.Broadcast()
- end)
- else
- net.Receive("footstep",function(len)
- hook.Call("PlayerFootstep",GAMEMODE,net.ReadEntity(),net.ReadVector(),net.ReadUInt(1),net.ReadString(),net.ReadFloat())
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement