Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddCSLuaFile( "shared.lua" )
- AddCSLuaFile( "cl_init.lua" )
- include( "shared.lua" )
- function GM:PlayerSelectSpawn( ply )
- local spawns = ents.FindByClass( "info_player_counterterrorist" )
- local random = math.random(spawns)
- if ply:Team() == 1
- then
- elseif ply:Team() == 3
- then
- spawns[random]
- end
- local spawns = ents.FindByClass( "info_player_terrorist" )
- local random = math.random(spawns)
- if ply:Team() == 2
- spawns[random]
- end
- end
- function GM:PlayerInitialSpawn( ply )
- RunConsoleCommand( "changeteam" )
- end
- function GM:PlayerLoadout( ply )
- ply:StripWeapons()
- if ply:Team() == 1 then
- ply:StripWeapons()
- elseif ply:Team() == 2 then
- ply:Give( "weapon_crowbar" )
- ply:SetModel( "models/player/kliener.mdl" )
- elseif ply:Team() == 3 then
- ply:Give( "weapon_crowbar" )
- ply:SetModel( "models/player/barney.mdl" )
- end
- end
- function ghost( ply )
- ply:SetTeam( 1 )
- end
- function death( ply )
- ply:SetTeam( 2 )
- end
- function surviver( ply )
- ply:SetTeam( 3 )
- end
- concommand.Add( "Spectator", ghost )
- concommand.Add( "Death", death )
- concommand.Add( "Surviver", surviver )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement