想找一个会写像这种类似的lua脚本的大佬
function Server:Start()
API.RegisterIndexedType("GameServer.BaseWeapon")
API.RegisterIndexedType("GameServer.InventoryUtil.Inventory")
Lua.Set("GameManager", "GameServer.GameManager")
end
function Server:OnRconCommand(peer, command)
if peer == nil then
return
end
if command == "/8" then
if bit32.band(peer.Player.AccessFlags, 512) != 512 then
return
end
RconCommands.GiveCmd(nil, peer.Player.Id .. " 33")
peer.Player.NetworkEntityPlayer.PlayerInventory.SelectedWeapon.Damage = 9999
peer.Player.NetworkEntityPlayer.PlayerInventory.SelectedWeapon.AmmoCapacity = 999
peer.Player.NetworkEntityPlayer.PlayerInventory.SelectedWeapon.Ammo = 999
peer.Player.NetworkEntityPlayer.PlayerInventory.SelectedWeapon.PredictedAmmo = 999
peer.Player.NetworkEntityPlayer.PlayerInventory.SelectedWeapon.AllowFlying = true
peer.Player.NetworkEntityPlayer.Character.MoveSpeed = 10
end
end