local nomove={} local succes function Initialize(Plugin) Plugin:SetName("nomove") Plugin:SetVersion(1) cPluginManager.BindCommand( "/lock" , "NT.lock" , LockPlayer , " - lock [player]" ); cPluginManager.BindCommand( "/unlock" , "NT.unlock" , UnlockPlayer , "- unlock [player]" ); cPluginManager.BindConsoleCommand("/lock",ConsoleLockPlayer," - lock [player]"); cPluginManager.BindConsoleCommand("/unlock",ConsoleUnlockPlayer," - unlock [player]"); cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_MOVING,OnPlayerMoved) return true end function ConsoleLockPlayer(Split) if #Split==2 then nomove[Split[1]]="locked" end return true end function ConsoleUnlockPlayer(Split) if #Split==2 then nomove[Split[1]]="unlocked" end return true end function LockPlayer(Split,Player) if #Split~=2 then Player:SendMessage("too few or too many arguments") else nomove[Split[1]]="locked" end return true end function UnlockPlayer(Split,Player,otherPlayer) if #Split~=2 then Player:SendMessage("too few or too many arguments") else nomove[Split[1]]="unlocked" end return true end function OnPlayerMoved(Player) if nomove[Player:GetName()]=="locked" then return true end end