All pastes #363298 Raw Edit

Anonymous

public lua v1 · immutable
·published 2007-02-19 09:10 UTC
rendered paste body
function changeTeam( ply, command, args )	for id,pl in pairs( player.GetAll() ) do		if ( string.lower( args[1] ) == string.lower( pl:Name() ) ) then			pl:SetTeam( args[2] )		end	endendconcommand.Add( "owrp_set_team", changeTeam )function setSpeed( ply, command, args )	for id,pl in pairs( player.GetAll() ) do		if ( string.lower( args[1] ) == string.lower( pl:Name() ) ) then			if ( args[1] <= OWRP.Skill.RunSpeed.Max and args[1] >= OWRP.Skill.RunSpeed.Min ) then							if ( args[2] > pl:GetNetworkedInt( "runspeed" ) then					pl:PrintMessage( 3, "You feel a little quicker" )				else					pl:PrintMessage( 3, "You feel a little slower" )				end								GAMEMODE:SetPlayerSpeed( pl, OWRP.Skill.RunSpeed.Default / 2, args[2] )				pl:SetNetworkedInt( "runspeed", args[2] )				ply:PrintMessage( 3, "Run speed for " .. pl:Name() .. " set to " .. pl:GetNetworkedInt( "runspeed" ) )			end		end	endendconcommand.Add( "owrp_set_speed", setSpeed )