Advertisement
Silverlan

Untitled

Nov 9th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. if(SinglePlayer()) then
  2.     if(SERVER) then
  3.         hook.Add("PlayerFootstep","fixclfootstep",function(activator,pos,foot,snd,vol,rep)
  4.             net.Start("footstep")
  5.                 net.WriteEntity(activator)
  6.                 net.WriteVector(pos)
  7.                 net.WriteUInt(foot,1)
  8.                 net.WriteString(snd)
  9.                 net.WriteFloat(vol)
  10.             net.Broadcast()
  11.         end)
  12.     else
  13.         net.Receive("footstep",function(len)
  14.             hook.Call("PlayerFootstep",GAMEMODE,net.ReadEntity(),net.ReadVector(),net.ReadUInt(1),net.ReadString(),net.ReadFloat())
  15.         end)
  16.     end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement