Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PLUGIN = {}
- PLUGIN.Name = "Spawn"
- PLUGIN.Desc = "Spawn player(s) on your server."
- PLUGIN.Author = "AC2"
- PLUGIN.CMD = "da_spawn"
- PLUGIN.Chat = "spawn"
- PLUGIN.Menu = true
- local function Spawn( pl, cmd, args )
- if !IsValid( pl ) or args[1] == nil then return end
- if !pl:IsAdmin( ) then pl:ChatPrint("[ADMIN] You don't have access to this command.") return end
- local Target = GetPlayerID( tonumber( args[1] ) )
- if !Target then pl:ChatPrint("[ADMIN] Player was not found.") return end
- Target:SetTeam( 2 )
- Target:Spawn( )
- Target:SetMoveType( MOVETYPE_WALK )
- Target:ChatPrint("You have been spawned by "..pl:Name( )..".")
- end
- concommand.Add(PLUGIN.CMD, Spawn )
- StorePlugin( PLUGIN )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement