CopsNRobbers/gamemodes/copsnrobbers/gamemode/shared.lua

48 lines
948 B
Lua
Raw Normal View History

2023-12-21 13:58:05 -05:00
GM.Name = "Cops 'n Robbers"
GM.Author = "Fesiug"
GM.Email = "publicfesiug@outlook.com"
GM.Website = "https://github.com/Fesiug/copsnrobbers"
GM.TeamBased = true
AddCSLuaFile("player_class_cnr.lua")
include ("player_class_cnr.lua")
2023-12-21 19:04:34 -05:00
AddCSLuaFile("logic.lua")
include ("logic.lua")
2023-12-21 20:40:47 -05:00
AddCSLuaFile("playerbs.lua")
include ("playerbs.lua")
2023-12-22 09:07:47 -05:00
AddCSLuaFile("cl_hud.lua")
AddCSLuaFile("cl_selectteam.lua")
if CLIENT then
include ("cl_hud.lua")
include ("cl_selectteam.lua")
end
2023-12-21 13:58:05 -05:00
function GM:Initialize()
-- Do stuff
end
concommand.Add( "cnr_cheat_weapons", function( p )
p:Give( "cnr_ak47" )
2023-12-21 20:40:47 -05:00
p:Give( "cnr_deagle" )
2023-12-21 13:58:05 -05:00
p:Give( "cnr_glock" )
p:Give( "cnr_m4a1" )
p:Give( "cnr_m4s90" )
p:Give( "cnr_m249" )
p:Give( "cnr_mac10" )
p:Give( "cnr_mossberg" )
p:Give( "cnr_mp5" )
p:Give( "cnr_p220" )
p:Give( "cnr_usp" )
end)
2023-12-22 09:07:47 -05:00
if SERVER then
function GM:ShowTeam( ply )
ply:SendLua( "GAMEMODE:ShowTeam()" )
end
end
2023-12-21 20:40:47 -05:00
-- Include module loader here